Huh...where'd that come from?

This commit is contained in:
niten 2023-09-17 23:41:39 -07:00
parent 2edeb54ab9
commit 5585d9f184
1 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ in {
hostname = mkOption { hostname = mkOption {
type = str; type = str;
description = "Hostname at which the server can be reached."; description = "Hostname at which the server can be reached.";
default = toplevel.config.services.matrixContainer.server-name; default = toplevel.config.services.matrix.server-name;
}; };
port = mkOption { port = mkOption {
@ -167,12 +167,12 @@ in {
]; ];
locations."/".extraConfig = "return 404;"; locations."/".extraConfig = "return 404;";
locations."/_matrix" = { locations."/_matrix" = {
proxyPass = "http://localhost:${toString cfg.port}"; proxyPass = "http://127.0.0.1:${toString cfg.port}";
recommendedProxySettings = true; recommendedProxySettings = true;
proxyWebsockets = true; proxyWebsockets = true;
}; };
locations."/_synapse/client" = { locations."/_synapse/client" = {
proxyPass = "http://localhost:${toString cfg.port}"; proxyPass = "http://127.0.0.1:${toString cfg.port}";
recommendedProxySettings = true; recommendedProxySettings = true;
proxyWebsockets = true; proxyWebsockets = true;
}; };