From ceecfc861c9b24e64550efc9e4a70b1e5f53827a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 17 Feb 2021 13:38:10 +0000 Subject: [PATCH] docker: allow custom bind interface/port from environment --- docker/entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 4dbe368..5aeb33d 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -2,4 +2,7 @@ export SNIKKET_WEB_DOMAIN="$SNIKKET_DOMAIN" -exec hypercorn -b "127.0.0.1:5765" 'snikket_web:create_app()' +export SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_INTERFACE="${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_INTERFACE-127.0.0.1}" +export SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_PORT="${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_PORT-5765}" + +exec hypercorn -b "${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_INTERFACE}:${SNIKKET_TWEAK_PORTAL_INTERNAL_HTTP_PORT}" 'snikket_web:create_app()'