From 0318000429943c9a89369d05fb8547d21fa8225f Mon Sep 17 00:00:00 2001 From: James Swineson Date: Wed, 24 Jul 2019 15:40:11 +0800 Subject: [PATCH] address https://github.com/ngoduykhanh/PowerDNS-Admin/issues/542 --- docker/Production/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Production/entrypoint.sh b/docker/Production/entrypoint.sh index f705d35..c555882 100644 --- a/docker/Production/entrypoint.sh +++ b/docker/Production/entrypoint.sh @@ -5,12 +5,13 @@ cd /opt/powerdns-admin GUNICORN_TIMEOUT="${GUINCORN_TIMEOUT:-120}" GUNICORN_WORKERS="${GUNICORN_WORKERS:-4}" GUNICORN_LOGLEVEL="${GUNICORN_LOGLEVEL:-info}" +BIND_ADDRESS="${BIND_ADDRESS:-0.0.0.0:80}" if [ ! -f ./config.py ]; then cat ./config_template.py ./docker/Production/config_docker.py > ./config.py fi -GUNICORN_ARGS="-t ${GUNICORN_TIMEOUT} --workers ${GUNICORN_WORKERS} --bind 0.0.0.0:80 --log-level ${GUNICORN_LOGLEVEL}" +GUNICORN_ARGS="-t ${GUNICORN_TIMEOUT} --workers ${GUNICORN_WORKERS} --bind ${BIND_ADDRESS} --log-level ${GUNICORN_LOGLEVEL}" if [ "$1" == gunicorn ]; then flask db upgrade exec "$@" $GUNICORN_ARGS