summarylogtreecommitdiffstats
path: root/nginx.pi-hole.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx.pi-hole.conf')
-rw-r--r--nginx.pi-hole.conf14
1 files changed, 9 insertions, 5 deletions
diff --git a/nginx.pi-hole.conf b/nginx.pi-hole.conf
index 36da1dcfdffe..b7cd87eac349 100644
--- a/nginx.pi-hole.conf
+++ b/nginx.pi-hole.conf
@@ -29,16 +29,20 @@ server {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SERVER_NAME $host;
}
-
- location /*.js {
- index pihole/index.js;
- }
location /admin {
root /srv/http/pihole;
index index.php index.html index.htm;
add_header X-Pi-hole "The Pi-hole Web interface is working!";
- add_header X-Frame-Options "DENY";
+ add_header X-Frame-Options "DENY";
+ }
+
+ location ~ /\.ttf {
+ add_header Access-Control-Allow-Origin "*";
+ }
+
+ location ~ /admin/\. {
+ deny all;
}
location ~ /\.ht {