2014-08-27 02:38:43 +00:00
|
|
|
# Control Panel
|
2014-10-05 12:55:28 +00:00
|
|
|
# Proxy /admin to our Python based control panel daemon. It is
|
|
|
|
# listening on IPv4 only so use an IP address and not 'localhost'.
|
2014-08-27 02:38:43 +00:00
|
|
|
rewrite ^/admin$ /admin/;
|
2015-06-07 18:50:41 +00:00
|
|
|
rewrite ^/admin/munin$ /admin/munin/ redirect;
|
2014-08-27 02:38:43 +00:00
|
|
|
location /admin/ {
|
2014-10-05 12:55:28 +00:00
|
|
|
proxy_pass http://127.0.0.1:10222/;
|
2014-08-27 02:38:43 +00:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2016-03-13 17:40:02 +00:00
|
|
|
add_header X-Frame-Options "DENY";
|
|
|
|
add_header X-Content-Type-Options nosniff;
|
|
|
|
add_header Content-Security-Policy "frame-ancestors 'none';";
|
2014-08-27 02:38:43 +00:00
|
|
|
}
|
2015-06-04 12:06:02 +00:00
|
|
|
# ADDITIONAL DIRECTIVES HERE
|