From 5dac2f1855aa253c52aa46b456a0cb6d7619b665 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 7 Nov 2024 14:38:36 +0800 Subject: fix(mail): try to fix subpath again. --- template/nginx/root.conf.template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'template/nginx') diff --git a/template/nginx/root.conf.template b/template/nginx/root.conf.template index dfdd00a..7ac5a9f 100644 --- a/template/nginx/root.conf.template +++ b/template/nginx/root.conf.template @@ -57,7 +57,7 @@ server { listen [::]:443 ssl http2; server_name mail.${CRUPEST_DOMAIN}; - location /rcube { + location /rcube/ { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; @@ -65,10 +65,10 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; - proxy_pass http://roundcubemail:80/rcube; + proxy_pass http://roundcubemail:80/; } - location /rspam { + location /rspam/ { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; -- cgit v1.2.3