Merge pull request #1287 from pi-hole/dev

Dev-> master
This commit is contained in:
Adam Warner 2023-01-18 23:07:45 +00:00 committed by GitHub
commit 3be4ac6b5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -349,10 +349,10 @@ setup_lighttpd_bind() {
setup_web_php_env() {
local config_file
config_file="/etc/lighttpd/conf-enabled/15-pihole-admin.conf"
# if the environment variable VIRTUAL_HOST is not set, or is empty, then set it to the IP address of the container
config_file="/etc/lighttpd/conf-available/15-pihole-admin.conf"
# if the environment variable VIRTUAL_HOST is not set, or is empty, then set it to the hostname of the container
if [ -z "${VIRTUAL_HOST}" ] || [ "${VIRTUAL_HOST}" == "" ]; then
VIRTUAL_HOST="${FTLCONF_LOCAL_IPV4}"
VIRTUAL_HOST="${HOSTNAME}"
fi
for config_var in "VIRTUAL_HOST" "CORS_HOSTS" "PHP_ERROR_LOG" "PIHOLE_DOCKER_TAG" "TZ"; do