This commit is contained in:
martyTF 2026-05-14 00:11:47 +02:00
parent 351f911674
commit 97dd1f7d40

View file

@ -68,7 +68,7 @@ in
}; };
listeners = [ listeners = [
{ {
port = config.server.synapse.port; port = config.server.social.synapse.port;
bind_addresses = [ "127.0.0.1" ]; bind_addresses = [ "127.0.0.1" ];
type = "http"; type = "http";
tls = false; tls = false;
@ -94,12 +94,12 @@ in
locations."= /.well-known/matrix/server".extraConfig = mkWellKnown serverConfig; locations."= /.well-known/matrix/server".extraConfig = mkWellKnown serverConfig;
locations."= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig; locations."= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig;
}; };
"${config.server.synapse.subdomain}.${config.networking.domain}" = { "${config.server.social.synapse.subdomain}.${config.networking.domain}" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations = { locations = {
"~ ^(/_matrix|/_synapse/client|/)" = { "~ ^(/_matrix|/_synapse/client|/)" = {
proxyPass = "http://127.0.0.1:${toString config.server.synapse.port}"; proxyPass = "http://127.0.0.1:${toString config.server.social.synapse.port}";
proxyWebsockets = true; proxyWebsockets = true;
extraConfig = extraConfig =
"proxy_set_header X-Forwarded-For $remote_addr;" "proxy_set_header X-Forwarded-For $remote_addr;"