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:
yuvipanda
2018-06-27 17:38:42 -07:00
parent fc30523867
commit 1a4cf5673b
2 changed files with 8 additions and 3 deletions

View File

@@ -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)