From bbeb211d7262ea52f4501facb4c7b9d7fa0e1970 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Fri, 4 Nov 2022 21:41:31 +0100 Subject: [PATCH] Listen to localhost by default --- core/admin/run_dev.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/core/admin/run_dev.sh b/core/admin/run_dev.sh index 62919f6f..03003348 100755 --- a/core/admin/run_dev.sh +++ b/core/admin/run_dev.sh @@ -4,10 +4,10 @@ set -euxo pipefail ### CONFIG -DEV_PORT="${DEV_PORT:-8080}" DEV_NAME="${DEV_NAME:-mailu-dev}" -DEV_PROFILE="${DEV_PROFILE:-false}" - +DEV_PROFILER="${DEV_PROFILER:-false}" +DEV_LISTEN="${DEV_LISTEN:-127.0.0.1:8080}" +[[ "${DEV_LISTEN}" == *:* ]] || DEV_LISTEN="127.0.0.1:${DEV_LISTEN}" ### MAIN @@ -41,11 +41,7 @@ EOF # admin sed -E '/^#/d;/^(COPY|EXPOSE|HEALTHCHECK|VOLUME|CMD) /d; s:^(.* )[^ ]*pybabel[^\\]*(.*):\1true \2:' Dockerfile >> dev/Dockerfile -DEV_URI="http://" -[[ "${DEV_PORT}" == *:* ]] || DEV_URI="${DEV_URI}localhost:" -DEV_URI="${DEV_URI}${DEV_PORT}/admin/ui/" - -MSG="\\n======================================================================\\nUI is found here: ${DEV_URI}\\nLog in with: admin@example.com and password admin if this is a new DB.\\n======================================================================\\n" +MSG="\\n======================================================================\\nUI can be found here: http://${DEV_LISTEN}/sso/login\\nLog in with: admin@example.com and password admin if this is a new DB.\\n======================================================================\\n" cat >> dev/Dockerfile <