From: serenissi Date: Thu, 20 Mar 2025 21:21:22 +0000 (+0530) Subject: add custom host support in container (#1) X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=922e92c06e0b30c5fdc3d98caa630a2cb8847f08;p=flatnotes.git add custom host support in container (#1) This adds an env for user specified host (including ipv6!). --- diff --git a/entrypoint.sh b/entrypoint.sh index 4d52468..a489e06 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,7 @@ [ "$EXEC_TOOL" ] || EXEC_TOOL=gosu [ "$FLATNOTES_PORT" ] || FLATNOTES_PORT=8080 +[ "$FLATNOTES_HOST" ] || FLATNOTES_HOST=0.0.0.0 set -e @@ -24,7 +25,7 @@ flatnotes_command="python -m \ uvicorn \ main:app \ --app-dir server \ - --host 0.0.0.0 \ + --host ${FLATNOTES_HOST} \ --port ${FLATNOTES_PORT} \ --proxy-headers \ --forwarded-allow-ips '*'"