From 2077f87f54710dccc5a7e60d8c0e07f8cbd32d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Wed, 14 Jun 2023 01:18:59 +0200 Subject: [PATCH] fix(nextcloud): fix proxy for collabora/code --- services/nextcloud.nix | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/services/nextcloud.nix b/services/nextcloud.nix index 49a0afa..186dd0e 100644 --- a/services/nextcloud.nix +++ b/services/nextcloud.nix @@ -57,19 +57,12 @@ in { services.nginx.virtualHosts."office.felschr.com" = { forceSSL = true; enableACME = 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; - }; + locations."/" = { + proxyPass = "http://127.0.0.1:9980"; + proxyWebsockets = true; + extraConfig = '' + proxy_read_timeout 36000s; + ''; }; };