mirror of
https://github.com/rommapp/romm.git
synced 2025-12-23 19:00:23 +00:00
[ROMM-2470] Skip bind IPV6 if IPV4_ONLY is true
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user