Created
December 15, 2016 21:36
-
-
Save croessner/64ae8150b3fa3636ec002b812c4ab2ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rspamd WebUI | |
rewrite ^(/save.+)$ /rspamd$1 last; | |
location /rspamd/ { | |
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains"; | |
add_header X-Content-Type-Options nosniff; | |
add_header X-Frame-Options SAMEORIGIN; | |
add_header X-XSS-Protection "1; mode=block"; | |
proxy_pass http://rspamd.controller.ip:11334/; | |
proxy_redirect http://rspamd.controller.ip:11334/ default; | |
proxy_read_timeout 60s; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
# If you want to allow access from restricted IPs: | |
#allow xxx.xxx.xxx.xxx; | |
allow yyy.yyy.yyy.yyy/yy; | |
deny all; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, used it for mailcow-dockerized. :-)