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)

View File

@@ -20,5 +20,5 @@ ExecStart={install_prefix}/hub/bin/configurable-http-proxy \
--ip 0.0.0.0 \
--port 80 \
--api-ip 127.0.0.1 \
--api-port 8001 \
--error-target http://127.0.0.1:8081/hub/error
--api-port 15002 \
--error-target http://127.0.0.1:15001/hub/error