1
0

Fix PIHOLE_SERVERIP Variable and Add pi-hole as default Reverse Proxy Host (#278)

* Fix PIHOLE_SERVERIP="192.168.1.2"

Should be PIHOLE_SERVERIP="192.168.1.2" not PIHOLE_IPSERVER="192.168.1.2"

* Update pihole.md

* Update pihole.md

Make pi-hole the eafult host for the Reverse Proxy Server
This commit is contained in:
maltokyo
2020-03-11 08:00:18 +01:00
committed by GitHub
parent 52ccd05ea8
commit d7432e011c

View File

@@ -20,15 +20,16 @@ BTCPAYGEN_ADDITIONAL_FRAGMENTS="$BTCPAYGEN_ADDITIONAL_FRAGMENTS;opt-add-pihole"
3. If your server has a firewall, make sure it allow incoming traffic to port `53 (UDP)`.
4. Configure your home router DHCP server to use `192.168.1.2`
From now everytime a device will connect to your local network, they will automatically use pi-hole as a DNS server. Advertisements will go to a black hole for all devices.
## Using the dashboard
Pi-Hole comes with a very nice admin dashboard to monitor its activity.
It is disabled by default. To enable it, you need to configure `PIHOLE_IPSERVER` to the IP of your server:
It is disabled by default. To enable it, you need to configure `PIHOLE_SERVERIP` to the IP of your server:
```bash
PIHOLE_IPSERVER="192.168.1.2"
PIHOLE_SERVERIP="192.168.1.2"
. btcpay-setup.sh -i
```
@@ -51,6 +52,15 @@ Then running again
docker logs pihole | grep random
```
## Make pi-hole the eafult host for the Reverse Proxy Server
As per here: https://github.com/pi-hole/docker-pi-hole#tips-and-tricks adding this will make the experience even more user firendly, blocking more ads. This will mean, when you visit port 80 with just your IP (eg. 192.168.1.2 etc) for pi-hole, pihole will show as the deafult page.
```bash
REVERSEPROXY_DEFAULT_HOST="pi.hole"
. btcpay-setup.sh -i
```
## Adding custom entry to pi-hole dns
You can easily add your local domains to pi-hole.
@@ -63,4 +73,4 @@ echo "192.168.1.3 synology.lan" >> "$local_dns_list"
pihole.sh restartdns
```
You can now browse `http://synology.lan` to access your NAS.
You can now browse `http://synology.lan` to access your NAS.