Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't override singleuser ip to 0.0.0.0 #2203

Merged
merged 2 commits into from
Jan 28, 2025
Merged

Conversation

manics
Copy link
Contributor

@manics manics commented Jan 27, 2025

Describe your changes

JupyterHub controls which interface(s) the singleuser server listens on.

The IP is set in the Spawner configuration, and passed to the singleuser server in the environment variable JUPYTERHUB_SERVICE_URL:
https://jupyterhub.readthedocs.io/en/latest/reference/spawners.html#note-on-ips-and-ports

Docker-stacks shouldn't override it. For example, if you configure a JupyterHub container spawner to use a docker-stacks image and use the default CMD it won't work with IPv6.

Issue ticket if applicable

Checklist (especially for first-time contributors)

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests
  • I will try not to use force-push to make the review process easier for reviewers
  • I have updated the documentation for significant changes

benz0li added a commit to b-data/jupyterlab-python-docker-stack that referenced this pull request Jan 27, 2025
- JupyterHub singleuser arguments are set using environment variables
- jupyter/docker-stacks#2203
benz0li added a commit to b-data/jupyterlab-julia-docker-stack that referenced this pull request Jan 27, 2025
- JupyterHub singleuser arguments are set using environment variables
- jupyter/docker-stacks#2203
benz0li added a commit to b-data/jupyterlab-mojo-docker-stack that referenced this pull request Jan 27, 2025
- JupyterHub singleuser arguments are set using environment variables
- jupyter/docker-stacks#2203
benz0li added a commit to b-data/jupyterlab-r-docker-stack that referenced this pull request Jan 27, 2025
- JupyterHub singleuser arguments are set using environment variables
- jupyter/docker-stacks#2203
benz0li added a commit to b-data/jupyterlab-qgis-docker-stack that referenced this pull request Jan 27, 2025
- JupyterHub singleuser arguments are set using environment variables
- jupyter/docker-stacks#2203
@mathbunnyru
Copy link
Member

@manics I'll merge this when tests pass, but I would be grateful if you added a test case both for this PR and previous PR.

@mathbunnyru mathbunnyru merged commit 52f7f3b into jupyter:main Jan 28, 2025
73 checks passed
@manics manics deleted the patch-1 branch January 29, 2025 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants