1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-03-29 21:46:57 +02:00

remove rewrite if webmail is on root

This commit is contained in:
hoellen 2018-10-18 14:27:28 +02:00
parent 7c82be904f
commit d4f32c3e7d

View File

@ -91,8 +91,10 @@ http {
{% endif %}
location {{ WEB_WEBMAIL }} {
{% if WEB_WEBMAIL != '/' %}
rewrite ^({{ WEB_WEBMAIL }})$ $1/ permanent;
rewrite ^{{ WEB_WEBMAIL }}/(.*) /$1 break;
{% endif %}
include /etc/nginx/proxy.conf;
client_max_body_size {{ MESSAGE_SIZE_LIMIT|int + 8388608 }};
proxy_pass http://$webmail;