use socket in run
This commit is contained in:
parent
61b5c81cb7
commit
2db3e8b035
1 changed files with 8 additions and 4 deletions
|
@ -31,6 +31,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
domain = "ooye.federated.nexus";
|
domain = "ooye.federated.nexus";
|
||||||
|
runtimeDir = "matrix-ooye";
|
||||||
in {
|
in {
|
||||||
imports = [inputs.nix-matrix-appservices.nixosModule inputs.ooye.modules.default];
|
imports = [inputs.nix-matrix-appservices.nixosModule inputs.ooye.modules.default];
|
||||||
|
|
||||||
|
@ -55,15 +56,18 @@ in {
|
||||||
homeserverName = "federated.nexus";
|
homeserverName = "federated.nexus";
|
||||||
discordTokenPath = config.age.secrets."discordToken.age".path;
|
discordTokenPath = config.age.secrets."discordToken.age".path;
|
||||||
discordClientSecretPath = config.age.secrets."discordClientSecret.age".path;
|
discordClientSecretPath = config.age.secrets."discordClientSecret.age".path;
|
||||||
socket = "/var/lib/matrix-ooye/socket";
|
socket = "/run/matrix-ooye/socket";
|
||||||
bridgeOrigin = "https://${domain}";
|
bridgeOrigin = "https://${domain}";
|
||||||
};
|
};
|
||||||
|
|
||||||
caddy.virtualHosts."${domain}".extraConfig = "reverse_proxy unix/${matrix-ooye.socket}";
|
caddy.virtualHosts."${domain}".extraConfig = "reverse_proxy unix/${matrix-ooye.socket}";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.matrix-ooye.serviceConfig = {
|
systemd.services = {
|
||||||
UMask = "0007";
|
matrix-ooye.serviceConfig = {
|
||||||
Group = "caddy";
|
RuntimeDirectory = runtimeDir;
|
||||||
|
UMask = "0007";
|
||||||
|
Group = "caddy";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue