[ROMM-2470] Skip bind IPV6 if IPV4_ONLY is true

This commit is contained in:
Georges-Antoine Assi
2025-10-07 09:07:30 -04:00
parent bf85a89265
commit 0d357d59e5
3 changed files with 9 additions and 1 deletions

View File

@@ -39,6 +39,13 @@ done
export ROMM_BASE_PATH=${ROMM_BASE_PATH:-/romm}
export ROMM_PORT=${ROMM_PORT:-8080}
# Set IPV6_LISTEN based on IPV4_ONLY
if [[ ${IPV4_ONLY} == "true" ]]; then
export IPV6_LISTEN="#listen [::]:${ROMM_PORT};"
else
export IPV6_LISTEN="listen [::]:${ROMM_PORT};"
fi
# Replace environment variables used in nginx configuration templates.
/docker-entrypoint.d/20-envsubst-on-templates.sh >/dev/null