1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-25 19:17:22 +01:00

Check if the user decided to not install Nextcloud and configure Nginx accordingly

This commit is contained in:
dkoao
2019-09-26 02:32:30 +00:00
parent 8eb89c2b4e
commit bc7aa885e4
2 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
# Control Panel
# Proxy /admin to our Python based control panel daemon. It is
# listening on IPv4 only so use an IP address and not 'localhost'.
location /admin/assets {
alias /usr/local/lib/mailinabox/vendor/assets;
}
rewrite ^/admin$ /admin/;
rewrite ^/admin/munin$ /admin/munin/ redirect;
location /admin/ {
proxy_pass http://127.0.0.1:10222/;
proxy_set_header X-Forwarded-For $remote_addr;
add_header X-Frame-Options "DENY";
add_header X-Content-Type-Options nosniff;
add_header Content-Security-Policy "frame-ancestors 'none';";
}
# ADDITIONAL DIRECTIVES HERE