Merge branch 'update-pi-hole' of kemonine/docs into master
This commit is contained in:
commit
8ab8773edc
|
@ -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
|
||||
|
||||
```
|
||||
|
|
Reference in New Issue