From d8214ebc7d77bccdf1350747eb2db3f7cc7224ca Mon Sep 17 00:00:00 2001 From: Peter Schiffer Date: Thu, 22 Nov 2018 19:01:52 +0100 Subject: [PATCH] Add PDNS_ENV_PDNS_webserver_host variable, default stays the same - pdns --- pdns-admin-uwsgi-ngoduykhanh/docker-cmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns-admin-uwsgi-ngoduykhanh/docker-cmd.sh b/pdns-admin-uwsgi-ngoduykhanh/docker-cmd.sh index 6ede106..53e537b 100755 --- a/pdns-admin-uwsgi-ngoduykhanh/docker-cmd.sh +++ b/pdns-admin-uwsgi-ngoduykhanh/docker-cmd.sh @@ -15,7 +15,7 @@ fi export PDNS_ADMIN_SQLA_DB_HOST PDNS_ADMIN_SQLA_DB_PORT PDNS_ADMIN_SQLA_DB_USER PDNS_ADMIN_SQLA_DB_PASSWORD PDNS_ADMIN_SQLA_DB_NAME # Configure pdns server env vars -: "${PDNS_API_URL:=http://pdns:${PDNS_ENV_PDNS_webserver_port:-8081}/}" +: "${PDNS_API_URL:=http://${PDNS_ENV_PDNS_webserver_host:-pdns}:${PDNS_ENV_PDNS_webserver_port:-8081}/}" : "${PDNS_API_KEY:=${PDNS_ENV_PDNS_api_key:-}}" : "${PDNS_VERSION:=${PDNS_ENV_VERSION:-}}"