|
|
@ -160,9 +160,7 @@ http {
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
include /etc/nginx/proxy.conf;
|
|
|
|
include /etc/nginx/proxy.conf;
|
|
|
|
client_max_body_size {{ MESSAGE_SIZE_LIMIT|int + 8388608 }};
|
|
|
|
client_max_body_size {{ MESSAGE_SIZE_LIMIT|int + 8388608 }};
|
|
|
|
auth_request /internal/auth/user;
|
|
|
|
auth_request /internal/auth/user;
|
|
|
|
auth_request_set $user $upstream_http_x_user;
|
|
|
|
|
|
|
|
auth_request_set $token $upstream_http_x_user_token;
|
|
|
|
|
|
|
|
error_page 403 @webmail_login;
|
|
|
|
error_page 403 @webmail_login;
|
|
|
|
proxy_pass http://$webmail;
|
|
|
|
proxy_pass http://$webmail;
|
|
|
|
}
|
|
|
|
}
|
|
|
|