From c471d1caaa6544a5799b0d575addd83a21a8dae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20Ku=C5=9B?= Date: Sat, 31 May 2025 18:20:30 +0200 Subject: [PATCH] location / { rewrite ^()$ $1/ permanent; rewrite ^/(.*) /$1 break; include /etc/nginx/proxy.conf; auth_request /internal/auth/user; error_page 403 @sso_login; proxy_pass http://\$webmail; } --- mailu/overrides/location_fix.conf | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 mailu/overrides/location_fix.conf diff --git a/mailu/overrides/location_fix.conf b/mailu/overrides/location_fix.conf new file mode 100644 index 0000000..42fb4f6 --- /dev/null +++ b/mailu/overrides/location_fix.conf @@ -0,0 +1,9 @@ +location / { + rewrite ^()$ $1/ permanent; + rewrite ^/(.*) /$1 break; + + include /etc/nginx/proxy.conf; + auth_request /internal/auth/user; + error_page 403 @sso_login; + proxy_pass http://\$webmail; +} \ No newline at end of file