From aea11d23f80c9c6441e13619d7c946ca5983c2ef Mon Sep 17 00:00:00 2001 From: Daniil Mira Date: Sun, 23 Oct 2022 22:20:39 +0200 Subject: [PATCH 1/2] Added: ability to change server virtual host name. --- one-container/README.md | 4 +++- one-container/docker-compose.yaml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/one-container/README.md b/one-container/README.md index efa6aad0..0cdb689b 100644 --- a/one-container/README.md +++ b/one-container/README.md @@ -23,7 +23,8 @@ First create a `.env` file to substitute variables for your deployment. | `REV_SERVER_DOMAIN` | unset | Network Domain | If conditional forwarding is enabled, set the domain of the local network router | | `REV_SERVER_TARGET` | unset | Router's IP | If conditional forwarding is enabled, set the IP of the local network router | | `REV_SERVER_CIDR` | unset | Reverse DNS | If conditional forwarding is enabled, set the reverse DNS zone (e.g. `192.168.0.0/24`) | -| `WEBTHEME` | `default-light` | `<"default-dark"\|"default-darker"\|"default-light"\|"default-auto"\|"lcars">`| User interface theme to use. +| `WEBTHEME` | `default-light` | `<"default-dark"\|"default-darker"\|"default-light"\|"default-auto"\|"lcars">`| User interface theme to use. | +| `VIRTUAL_HOST` | `$FTLCONF_LOCAL_IPV4` | `` | `What your web server 'virtual host' is, accessing admin through this Hostname/IP allows you to make changes to the whitelist / blacklists in addition to the default 'http://pi.hole/admin/' address` | Example `.env` file in the same directory as your `docker-compose.yaml` file: @@ -39,6 +40,7 @@ HOSTNAME=pihole DOMAIN_NAME=pihole.local PIHOLE_WEBPORT=80 WEBTHEME=default-light +VIRTUAL_HOST=pihole.box ``` ### Using Portainer stacks? diff --git a/one-container/docker-compose.yaml b/one-container/docker-compose.yaml index a25fc1b7..31316ae2 100644 --- a/one-container/docker-compose.yaml +++ b/one-container/docker-compose.yaml @@ -29,6 +29,7 @@ services: - PIHOLE_DNS_=127.0.0.1#5335 - DNSSEC="true" - DNSMASQ_LISTENING=single + - VIRTUAL_HOST=${VIRTUAL_HOST} volumes: - etc_pihole-unbound:/etc/pihole:rw - etc_pihole_dnsmasq-unbound:/etc/dnsmasq.d:rw From 2651f40e01cab519921d69e9f7fc871eb54c9bbf Mon Sep 17 00:00:00 2001 From: Daniil Mira Date: Sun, 23 Oct 2022 22:22:46 +0200 Subject: [PATCH 2/2] Update README.md --- one-container/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/one-container/README.md b/one-container/README.md index 0cdb689b..ef5f42c8 100644 --- a/one-container/README.md +++ b/one-container/README.md @@ -24,7 +24,7 @@ First create a `.env` file to substitute variables for your deployment. | `REV_SERVER_TARGET` | unset | Router's IP | If conditional forwarding is enabled, set the IP of the local network router | | `REV_SERVER_CIDR` | unset | Reverse DNS | If conditional forwarding is enabled, set the reverse DNS zone (e.g. `192.168.0.0/24`) | | `WEBTHEME` | `default-light` | `<"default-dark"\|"default-darker"\|"default-light"\|"default-auto"\|"lcars">`| User interface theme to use. | -| `VIRTUAL_HOST` | `$FTLCONF_LOCAL_IPV4` | `` | `What your web server 'virtual host' is, accessing admin through this Hostname/IP allows you to make changes to the whitelist / blacklists in addition to the default 'http://pi.hole/admin/' address` | +| `VIRTUAL_HOST` | `$FTLCONF_LOCAL_IPV4` | `` | What your web server 'virtual host' is, accessing admin through this Hostname/IP allows you to make changes to the whitelist / blacklists in addition to the default 'http://pi.hole/admin/' address | Example `.env` file in the same directory as your `docker-compose.yaml` file: