|
|
|
@ -91,7 +91,7 @@ http {
|
|
|
|
|
client_max_body_size {{ MESSAGE_SIZE_LIMIT|int + 8388608 }};
|
|
|
|
|
|
|
|
|
|
# Listen on HTTP only in kubernetes or behind reverse proxy
|
|
|
|
|
{% if KUBERNETES_INGRESS == 'true' or TLS_FLAVOR in [ 'mail-letsencrypt', 'notls', 'mail' ] %}
|
|
|
|
|
{% if KUBERNETES_INGRESS or TLS_FLAVOR in [ 'mail-letsencrypt', 'notls', 'mail' ] %}
|
|
|
|
|
listen 80;
|
|
|
|
|
{% if SUBNET6 %}
|
|
|
|
|
listen [::]:80;
|
|
|
|
@ -166,7 +166,7 @@ http {
|
|
|
|
|
include /overrides/*.conf;
|
|
|
|
|
|
|
|
|
|
# Actual logic
|
|
|
|
|
{% if ADMIN == 'true' or WEBMAIL != 'none' %}
|
|
|
|
|
{% if ADMIN or WEBMAIL != 'none' %}
|
|
|
|
|
location ~ ^/(sso|static)/ {
|
|
|
|
|
include /etc/nginx/proxy.conf;
|
|
|
|
|
proxy_pass http://$admin;
|
|
|
|
@ -219,7 +219,7 @@ http {
|
|
|
|
|
return 302 /sso/login;
|
|
|
|
|
}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if ADMIN == 'true' %}
|
|
|
|
|
{% if ADMIN %}
|
|
|
|
|
location {{ WEB_ADMIN }} {
|
|
|
|
|
include /etc/nginx/proxy.conf;
|
|
|
|
|
proxy_pass http://$admin;
|
|
|
|
|