Make the rspamd webui available, fixes #157

This commit is contained in:
kaiyou
2017-11-10 14:49:36 +01:00
parent 3675fdb915
commit 1a3f85fbc2
4 changed files with 38 additions and 4 deletions

View File

@@ -71,11 +71,20 @@ http {
location {{ WEB_ADMIN }} {
return 301 {{ WEB_ADMIN }}/ui;
}
location ~ {{ WEB_ADMIN }}/(ui|static) {
rewrite ^{{ WEB_ADMIN }}/(.*) /$1 break;
proxy_set_header X-Forwarded-Prefix {{ WEB_ADMIN }};
proxy_pass http://admin;
}
location {{ WEB_ADMIN }}/antispam {
rewrite ^{{ WEB_ADMIN }}/antispam/(.*) /$1 break;
auth_request /internal/auth/admin;
proxy_set_header X-Real-IP "";
proxy_set_header X-Forwarded-For "";
proxy_pass http://antispam:11334;
}
{% endif %}
{% if WEBDAV != 'none' %}
@@ -85,6 +94,14 @@ http {
}
{% endif %}
{% endif %}
location /internal {
internal;
proxy_pass http://admin;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
}
}
# Forwarding authentication server