Skip to content

Instantly share code, notes, and snippets.

@ashleymavericks
Created September 4, 2023 01:20
Show Gist options
  • Save ashleymavericks/7df08a699376d417c4d9c1331bcb05db to your computer and use it in GitHub Desktop.
Save ashleymavericks/7df08a699376d417c4d9c1331bcb05db to your computer and use it in GitHub Desktop.
Pi-Hole with Nginx Reverse Proxy, redirection to /admin
# Pihole /admin/ Fix
location / {
proxy_pass http://192.168.0.100:1010/admin/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_hide_header X-Frame-Options;
proxy_set_header X-Frame-Options "SAMEORIGIN";
proxy_read_timeout 90;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment