mirror of
https://github.com/lingble/Mailu.git
synced 2026-03-20 03:50:30 +00:00
Fix #2078
This commit is contained in:
@@ -135,7 +135,7 @@ http {
|
||||
|
||||
# Actual logic
|
||||
{% if ADMIN == 'true' or WEBMAIL != 'none' %}
|
||||
location ~ ^/(sso|static) {
|
||||
location ~ ^/(sso|static)/ {
|
||||
include /etc/nginx/proxy.conf;
|
||||
proxy_pass http://$admin;
|
||||
}
|
||||
@@ -165,7 +165,12 @@ http {
|
||||
proxy_pass http://$webmail;
|
||||
}
|
||||
|
||||
{% if WEB_WEBMAIL == '/' %}
|
||||
location /sso.php {
|
||||
{% endif %}
|
||||
{% if WEB_WEBMAIL != '/' %}
|
||||
location {{ WEB_WEBMAIL }}/sso.php {
|
||||
{% endif %}
|
||||
{% if WEB_WEBMAIL != '/' %}
|
||||
rewrite ^({{ WEB_WEBMAIL }})$ $1/ permanent;
|
||||
rewrite ^{{ WEB_WEBMAIL }}/(.*) /$1 break;
|
||||
|
||||
1
towncrier/newsfragments/2078.fix
Normal file
1
towncrier/newsfragments/2078.fix
Normal file
@@ -0,0 +1 @@
|
||||
SSO login page to webmail did not work if WEB_WEBMAIL=/ was set.
|
||||
Reference in New Issue
Block a user