mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-21 03:02:09 +00:00
25 lines
750 B
Plaintext
25 lines
750 B
Plaintext
# 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'.
|
|
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';";
|
|
}
|
|
|
|
location /radicale {
|
|
access_log /var/log/radicale/access.log;
|
|
error_log /var/log/radicale/error.log;
|
|
proxy_pass http://127.0.0.1:5232;
|
|
}
|
|
|
|
location ~ ^/.well-known/(caldav|carddav) {
|
|
rewrite ^ /radicale$request_uri last;
|
|
}
|
|
|
|
# ADDITIONAL DIRECTIVES HERE
|