From 8fc15bfc37deccdcb8071597591b244431cfe894 Mon Sep 17 00:00:00 2001 From: bartbutenaers Date: Sun, 16 Mar 2025 22:26:09 +0100 Subject: [PATCH] Base path contains leading slash --- .../main/rootfs/usr/local/nginx/templates/base_path.gotmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/main/rootfs/usr/local/nginx/templates/base_path.gotmpl b/docker/main/rootfs/usr/local/nginx/templates/base_path.gotmpl index c80a58f57..ace4443ee 100644 --- a/docker/main/rootfs/usr/local/nginx/templates/base_path.gotmpl +++ b/docker/main/rootfs/usr/local/nginx/templates/base_path.gotmpl @@ -3,16 +3,16 @@ location = {{ .base_path }} { return 302 {{ .base_path }}/; } -location ^~ /{{ .base_path }}/ { +location ^~ {{ .base_path }}/ { # remove base_url from the path before passing upstream - rewrite ^/{{ .base_path }}/(.*) /$1 break; + rewrite ^{{ .base_path }}/(.*) /$1 break; proxy_pass $scheme://127.0.0.1:8971; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; - proxy_set_header X-Ingress-Path /{{ .base_path }}; + proxy_set_header X-Ingress-Path {{ .base_path }}; access_log off; }