Created
July 19, 2023 07:27
-
-
Save GamePlayer-8/6996857c7a752f8300d3a06bfb7a9aae to your computer and use it in GitHub Desktop.
nginx_pihole.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set $piholeip <PIHOLE IP>; | |
set $piholeport <PIHOLE PORT>; | |
location /pihole/ { | |
proxy_redirect /admin/ /pihole/; | |
proxy_pass http://$piholeip:$piholeport/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_read_timeout 90; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment