pi -hole Steuerung über REST API

This commit is contained in:
2026-06-29 13:00:48 +02:00
parent ff97a434a9
commit 3d670b4839
37 changed files with 1672 additions and 8 deletions
+10
View File
@@ -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;
}