fix(nextcloud): use recommended nginx config for collabora/code

This commit is contained in:
Felix Schröter 2023-06-08 23:08:02 +02:00
parent 06996377f6
commit 8474d93a8c
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -57,10 +57,20 @@ in {
services.nginx.virtualHosts."office.felschr.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:9980";
locations = {
"^~ /browser".proxyPass = "http://127.0.0.1:9980";
"^~ /hosting/discovery".proxyPass = "http://127.0.0.1:9980";
"^~ /hosting/capabilities".proxyPass = "http://127.0.0.1:9980";
"~ ^/cool/(.*)/ws$" = {
proxyPass = "http://127.0.0.1:9980";
proxyWebsockets = true;
};
"~ ^/(c|l)ool".proxyPass = "http://127.0.0.1:9980";
"^~ /cool/adminws" = {
proxyPass = "http://127.0.0.1:9980";
proxyWebsockets = true;
};
};
};
# ensure that postgres is running *before* running the setup