Fix format error
This commit is contained in:
parent
86aeff9e76
commit
7ee710a405
|
@ -1,7 +1,8 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
conduitConfig = config.services.matrix-conduit.settings;
|
||||
in {
|
||||
in
|
||||
{
|
||||
services.matrix-conduit = {
|
||||
enable = true;
|
||||
|
||||
|
@ -36,7 +37,7 @@ in {
|
|||
ssl = true;
|
||||
}
|
||||
{
|
||||
addr= "[::]";
|
||||
addr = "[::]";
|
||||
port = 8448;
|
||||
ssl = true;
|
||||
}
|
||||
|
@ -46,12 +47,12 @@ in {
|
|||
ssl = true;
|
||||
}
|
||||
{
|
||||
addr= "[::]";
|
||||
addr = "[::]";
|
||||
port = 443;
|
||||
ssl = true;
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
locations."/" = {
|
||||
recommendedProxySettings = true;
|
||||
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 = {
|
||||
enable = true;
|
||||
|
@ -87,7 +91,7 @@ in {
|
|||
};
|
||||
};
|
||||
environmentFile = config.sops.secrets.discord_bridge_token.path;
|
||||
|
||||
|
||||
serviceDependencies = [ "conduit.service" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue