mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 13:01:35 -07:00
Merge pull request #6 from nemchik/pihole-header
Add frame header hide for pihole
This commit is contained in:
commit
0c7e957284
2 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,7 @@ server {
|
|||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_pihole pihole;
|
||||
proxy_pass http://$upstream_pihole:80;
|
||||
proxy_hide_header X-Frame-Options;
|
||||
}
|
||||
|
||||
location /admin {
|
||||
|
@ -40,5 +41,6 @@ server {
|
|||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_pihole pihole;
|
||||
proxy_pass http://$upstream_pihole:80;
|
||||
proxy_hide_header X-Frame-Options;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ location ^~ /pihole/ {
|
|||
set $upstream_pihole pihole;
|
||||
rewrite /pihole(.*) $1 break;
|
||||
proxy_pass http://$upstream_pihole:80;
|
||||
proxy_hide_header X-Frame-Options;
|
||||
}
|
||||
|
||||
location /pihole/admin {
|
||||
|
@ -36,4 +37,5 @@ location ^~ /pihole/admin/ {
|
|||
set $upstream_pihole pihole;
|
||||
rewrite /pihole(.*) $1 break;
|
||||
proxy_pass http://$upstream_pihole:80;
|
||||
proxy_hide_header X-Frame-Options;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue