404 if not a matrix request

This commit is contained in:
niten 2023-09-13 15:48:38 -07:00
parent f609c7b545
commit 2edeb54ab9
1 changed files with 8 additions and 2 deletions

View File

@ -165,10 +165,16 @@ in {
ssl = true; ssl = true;
} }
]; ];
locations."/" = { locations."/".extraConfig = "return 404;";
locations."/_matrix" = {
proxyPass = "http://localhost:${toString cfg.port}"; proxyPass = "http://localhost:${toString cfg.port}";
proxyWebsockets = true;
recommendedProxySettings = true; recommendedProxySettings = true;
proxyWebsockets = true;
};
locations."/_synapse/client" = {
proxyPass = "http://localhost:${toString cfg.port}";
recommendedProxySettings = true;
proxyWebsockets = true;
}; };
}; };
}; };