mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Use high ports for CHP API + JupyterHub
This makes it easier to test this distro out on machines with JupyterHub running already
This commit is contained in:
@@ -24,9 +24,14 @@ class CustomSpawner(SystemdSpawner):
|
|||||||
|
|
||||||
c.JupyterHub.spawner_class = CustomSpawner
|
c.JupyterHub.spawner_class = CustomSpawner
|
||||||
|
|
||||||
c.ConfigurableHTTPProxy.should_start = False
|
|
||||||
c.JupyterHub.port = 80
|
c.JupyterHub.port = 80
|
||||||
|
|
||||||
|
# Use a high port so users can try this on machines with a JupyterHub already present
|
||||||
|
c.JupyterHub.hub_port = 15001
|
||||||
|
|
||||||
|
c.ConfigurableHTTPProxy.should_start = False
|
||||||
|
c.ConfigurableHTTPProxy.api_url = 'http://127.0.0.1:15002'
|
||||||
|
|
||||||
c.SystemdSpawner.extra_paths = [os.path.join(USER_ENV_PREFIX, 'bin')]
|
c.SystemdSpawner.extra_paths = [os.path.join(USER_ENV_PREFIX, 'bin')]
|
||||||
|
|
||||||
configurer.apply_yaml_config(os.path.join(INSTALL_PREFIX, 'config.yaml'), c)
|
configurer.apply_yaml_config(os.path.join(INSTALL_PREFIX, 'config.yaml'), c)
|
||||||
|
|||||||
@@ -20,5 +20,5 @@ ExecStart={install_prefix}/hub/bin/configurable-http-proxy \
|
|||||||
--ip 0.0.0.0 \
|
--ip 0.0.0.0 \
|
||||||
--port 80 \
|
--port 80 \
|
||||||
--api-ip 127.0.0.1 \
|
--api-ip 127.0.0.1 \
|
||||||
--api-port 8001 \
|
--api-port 15002 \
|
||||||
--error-target http://127.0.0.1:8081/hub/error
|
--error-target http://127.0.0.1:15001/hub/error
|
||||||
|
|||||||
Reference in New Issue
Block a user