From 140e07863e79b0adcc81b14e7fdcfba57e4d99de Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Sun, 22 Jun 2025 17:09:15 +0200 Subject: [PATCH] fix: internet masters may thy solution be worketh --- hosts/hitsugibune/nextcloud.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/hitsugibune/nextcloud.nix b/hosts/hitsugibune/nextcloud.nix index f3b85f6..e23162e 100644 --- a/hosts/hitsugibune/nextcloud.nix +++ b/hosts/hitsugibune/nextcloud.nix @@ -60,7 +60,9 @@ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-NginX-Proxy true; proxy_set_header X-Forwarded-Proto http; - proxy_pass http://127.0.0.1:8080/; # tailing / is important! + #proxy_pass http://127.0.0.1:8080/; # tailing / is important! + rewrite ^/nextcloud(.*)$ $1 break; + proxy_pass http://localhost:8080 proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; proxy_redirect off;