|
|
|
@ -84,6 +84,7 @@ http {
|
|
|
|
|
{% if WEBDAV_ADDRESS %}
|
|
|
|
|
set $webdav {{ WEBDAV_ADDRESS }};
|
|
|
|
|
{% endif %}
|
|
|
|
|
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' ] %}
|
|
|
|
@ -159,7 +160,6 @@ http {
|
|
|
|
|
rewrite ^{{ WEB_WEBMAIL }}/(.*) /$1 break;
|
|
|
|
|
{% endif %}
|
|
|
|
|
include /etc/nginx/proxy.conf;
|
|
|
|
|
client_max_body_size {{ MESSAGE_SIZE_LIMIT|int + 8388608 }};
|
|
|
|
|
auth_request /internal/auth/user;
|
|
|
|
|
error_page 403 @webmail_login;
|
|
|
|
|
proxy_pass http://$webmail;
|
|
|
|
@ -175,7 +175,6 @@ http {
|
|
|
|
|
rewrite ^{{ WEB_WEBMAIL }}/(.*) /$1 break;
|
|
|
|
|
{% endif %}
|
|
|
|
|
include /etc/nginx/proxy.conf;
|
|
|
|
|
client_max_body_size {{ MESSAGE_SIZE_LIMIT|int + 8388608 }};
|
|
|
|
|
auth_request /internal/auth/user;
|
|
|
|
|
auth_request_set $user $upstream_http_x_user;
|
|
|
|
|
auth_request_set $token $upstream_http_x_user_token;
|
|
|
|
|