Don't override singleuser ip to 0.0.0.0 (#2203)

Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
This commit is contained in:
Simon Li
2025-01-28 09:52:35 +00:00
committed by GitHub
parent dcecb31556
commit 52f7f3b5d5

View File

@@ -8,9 +8,7 @@ import sys
# Entrypoint is start.sh # Entrypoint is start.sh
command = ["jupyterhub-singleuser"] command = ["jupyterhub-singleuser"]
# set default ip to 0.0.0.0 # JupyterHub singleuser arguments are set using environment variables
if "--ip=" not in os.environ.get("NOTEBOOK_ARGS", ""):
command.append("--ip=0.0.0.0")
# Append any optional NOTEBOOK_ARGS we were passed in. # Append any optional NOTEBOOK_ARGS we were passed in.
# This is supposed to be multiple args passed on to the notebook command, # This is supposed to be multiple args passed on to the notebook command,