pi -hole Steuerung über REST API
This commit is contained in:
@@ -22,6 +22,16 @@ server {
|
||||
application/rss+xml
|
||||
image/svg+xml;
|
||||
|
||||
# Pi-hole v6 REST API: /pihole/... wird auf den Pi-hole-Host weitergeleitet.
|
||||
# Der Browser spricht nur diesen gleichen Origin an (kein CORS/Mixed-Content).
|
||||
location /pihole/ {
|
||||
proxy_pass http://10.0.0.60/;
|
||||
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_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user