|
|
@ -57,19 +57,19 @@ http {
|
|
|
|
return 301 $scheme://$host/webmail/;
|
|
|
|
return 301 $scheme://$host/webmail/;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location /webmail {
|
|
|
|
location {{ WEB_WEBMAIL }} {
|
|
|
|
rewrite ^/webmail/(.*) /$1 break;
|
|
|
|
rewrite ^{{ WEB_WEBMAIL }}/(.*) /$1 break;
|
|
|
|
proxy_pass http://webmail;
|
|
|
|
proxy_pass http://webmail;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if ADMIN == 'true' %}
|
|
|
|
{% if ADMIN == 'true' %}
|
|
|
|
location /admin {
|
|
|
|
location {{ WEB_ADMIN }} {
|
|
|
|
return 301 $scheme://$host/admin/ui;
|
|
|
|
return 301 $scheme://$host{{ WEB_ADMIN }}/ui;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
location ~ /admin/(ui|static) {
|
|
|
|
location ~ {{ WEB_ADMIN }}/(ui|static) {
|
|
|
|
rewrite ^/admin/(.*) /$1 break;
|
|
|
|
rewrite ^{{ WEB_ADMIN }}/(.*) /$1 break;
|
|
|
|
proxy_set_header X-Forwarded-Prefix /admin;
|
|
|
|
proxy_set_header X-Forwarded-Prefix {{ WEB_ADMIN }};
|
|
|
|
proxy_pass http://admin;
|
|
|
|
proxy_pass http://admin;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|