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.ConfigurableHTTPProxy.should_start = False
|
||||
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')]
|
||||
|
||||
configurer.apply_yaml_config(os.path.join(INSTALL_PREFIX, 'config.yaml'), c)
|
||||
|
||||
Reference in New Issue
Block a user