diff --git a/services/nextcloud.nix b/services/nextcloud.nix index cd3f899..5947734 100644 --- a/services/nextcloud.nix +++ b/services/nextcloud.nix @@ -57,9 +57,19 @@ in { services.nginx.virtualHosts."office.felschr.com" = { forceSSL = true; enableACME = true; - locations."/" = { - proxyPass = "http://localhost:9980"; - proxyWebsockets = true; + 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; + }; }; };