404 if not a matrix request
This commit is contained in:
parent
f609c7b545
commit
2edeb54ab9
|
@ -165,10 +165,16 @@ in {
|
|||
ssl = true;
|
||||
}
|
||||
];
|
||||
locations."/" = {
|
||||
locations."/".extraConfig = "return 404;";
|
||||
locations."/_matrix" = {
|
||||
proxyPass = "http://localhost:${toString cfg.port}";
|
||||
proxyWebsockets = true;
|
||||
recommendedProxySettings = true;
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
locations."/_synapse/client" = {
|
||||
proxyPass = "http://localhost:${toString cfg.port}";
|
||||
recommendedProxySettings = true;
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue