kemonine
/
lollipopcloud
Archived
1
0
Fork 0

Remove caddy piece from pi hole docs (more reliable w/o caddy

This commit is contained in:
KemoNine 2019-02-16 19:00:41 +00:00
parent 4a5b73b452
commit 2160f432b3
1 changed files with 0 additions and 30 deletions

View File

@ -100,36 +100,6 @@ local-data: "pi-hole A 172.30.5.5"
local-data-ptr: "172.30.5.5 pi-hole"
local-data: "pi-hole.domain.tld A 172.30.5.5"
local-data-ptr: "172.30.5.5 pi-hole.domain.tld"
local-data-ptr: "172.30.0.1 pi-hole-gui"
local-data-ptr: "172.30.0.1 pi-hole-gui.domain.tld"
local-data: "pi-hole-gui A 172.30.0.1"
local-data: "pi-hole-gui.domain.tld A 172.30.0.1"
EOF
```
## Serving Via Caddy
``` bash
cat > /etc/caddy/services/pi-hole.conf <<EOF
# Pi Hole proxy
# This is only so good
# Pi Hole assumes everything is http. Bump it over to http instead of https, because Pi Hole is stupid at life
pi-hole-gui.domain.tld {
tls user@domain.tld
redir 301 {
if {scheme} is https
/ http://pi-hole-gui.domain.tld{uri}
}
log /var/log/caddy/pi-hole.log
proxy / 172.30.5.5:80 {
transparent
}
}
EOF
```