Fix format error

This commit is contained in:
Victor Mignot 2024-07-26 21:48:03 +02:00 committed by Victor Mignot
parent 86aeff9e76
commit 7ee710a405
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D

View file

@ -1,7 +1,8 @@
{ config, ... }: { config, ... }:
let let
conduitConfig = config.services.matrix-conduit.settings; conduitConfig = config.services.matrix-conduit.settings;
in { in
{
services.matrix-conduit = { services.matrix-conduit = {
enable = true; enable = true;
@ -36,7 +37,7 @@ in {
ssl = true; ssl = true;
} }
{ {
addr= "[::]"; addr = "[::]";
port = 8448; port = 8448;
ssl = true; ssl = true;
} }
@ -46,12 +47,12 @@ in {
ssl = true; ssl = true;
} }
{ {
addr= "[::]"; addr = "[::]";
port = 443; port = 443;
ssl = true; ssl = true;
} }
]; ];
locations."/" = { locations."/" = {
recommendedProxySettings = true; recommendedProxySettings = true;
proxyPass = "http://${conduitConfig.global.address}:${builtins.toString conduitConfig.global.port}"; proxyPass = "http://${conduitConfig.global.address}:${builtins.toString conduitConfig.global.port}";
@ -61,7 +62,10 @@ in {
}; };
}; };
networking.firewall.allowedTCPPorts = [ 443 8448 ]; networking.firewall.allowedTCPPorts = [
443
8448
];
services.matrix-appservice-discord = { services.matrix-appservice-discord = {
enable = true; enable = true;
@ -87,7 +91,7 @@ in {
}; };
}; };
environmentFile = config.sops.secrets.discord_bridge_token.path; environmentFile = config.sops.secrets.discord_bridge_token.path;
serviceDependencies = [ "conduit.service" ]; serviceDependencies = [ "conduit.service" ];
}; };
} }