From 956c95e5271e4eb101300d0d9197166bb2063e23 Mon Sep 17 00:00:00 2001 From: GeorgianaElena Date: Tue, 12 Feb 2019 14:35:59 +0200 Subject: [PATCH] Fixed minor issues --- bootstrap/bootstrap.py | 2 +- tests/test_configurer.py | 2 +- tljh/systemd.py | 2 +- tljh/traefik.toml.tpl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bootstrap/bootstrap.py b/bootstrap/bootstrap.py index e448438..60411cb 100644 --- a/bootstrap/bootstrap.py +++ b/bootstrap/bootstrap.py @@ -86,7 +86,7 @@ def main(): 'git+https://github.com/jupyterhub/the-littlest-jupyterhub.git' ) - traefik_proxy_repo_path = 'git+https://github.com/jupyterhub/traefik-proxy.git' + traefik_proxy_repo_path = 'jupyterhub-traefik-proxy==0.1.0a1' subprocess.check_output([ os.path.join(hub_prefix, 'bin', 'pip'), diff --git a/tests/test_configurer.py b/tests/test_configurer.py index 14ce953..96d2fe0 100644 --- a/tests/test_configurer.py +++ b/tests/test_configurer.py @@ -182,4 +182,4 @@ def test_set_auth_api(): } }) assert c.TraefikTomlProxy.traefik_api_username == 'some_user' - assert c.TraefikTomlProxy.traefik_api_password == '1234' \ No newline at end of file + assert c.TraefikTomlProxy.traefik_api_password == '1234' diff --git a/tljh/systemd.py b/tljh/systemd.py index 53fa965..ae1af19 100644 --- a/tljh/systemd.py +++ b/tljh/systemd.py @@ -84,4 +84,4 @@ def check_service_active(name): ], check=True) return True except subprocess.CalledProcessError: - return False \ No newline at end of file + return False diff --git a/tljh/traefik.toml.tpl b/tljh/traefik.toml.tpl index 3e53326..20a3487 100644 --- a/tljh/traefik.toml.tpl +++ b/tljh/traefik.toml.tpl @@ -41,7 +41,7 @@ idleTimeout = "10m0s" {% endif %} {% endif %} [entryPoints.auth_api] - address = ":{{auth_api['port']}}" + address = "127.0.0.1:{{auth_api['port']}}" [entryPoints.auth_api.whiteList] sourceRange = ['{{auth_api['ip']}}'] [entryPoints.auth_api.auth.basic]