Bind the container server to ipv6 as well as ipv4 ports. Fixes #3392

This commit is contained in:
Dave Page
2018-05-31 10:27:23 -04:00
parent f877de6a1f
commit eec9714191

View File

@@ -20,7 +20,7 @@ fi
# Using --threads to have multi-threaded single-process worker
if [ ! -z ${PGADMIN_ENABLE_TLS} ]; then
exec gunicorn --bind 0.0.0.0:${PGADMIN_LISTEN_PORT:-443} -w 1 --threads ${GUNICORN_THREADS:-25} --access-logfile - --keyfile /certs/server.key --certfile /certs/server.cert run_pgadmin:app
exec gunicorn --bind 0.0.0.0:${PGADMIN_LISTEN_PORT:-443} --bind [::]:${PGADMIN_LISTEN_PORT:-443} -w 1 --threads ${GUNICORN_THREADS:-25} --access-logfile - --keyfile /certs/server.key --certfile /certs/server.cert run_pgadmin:app
else
exec gunicorn --bind 0.0.0.0:${PGADMIN_LISTEN_PORT:-80} -w 1 --threads ${GUNICORN_THREADS:-25} --access-logfile - run_pgadmin:app
exec gunicorn --bind 0.0.0.0:${PGADMIN_LISTEN_PORT:-80} --bind [::]:${PGADMIN_LISTEN_PORT:-80} -w 1 --threads ${GUNICORN_THREADS:-25} --access-logfile - run_pgadmin:app
fi