mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
update for traefik v2, treafik-proxy v1
- tls config is no longer allowed in static config file, add separate dynamic config - no longer need to persist auth config ourselves (TraefikProxy handles this) - make sure to reload proxy before reloading hub in tests
This commit is contained in:
@@ -239,8 +239,13 @@ def update_traefik_api(c, config):
|
||||
"""
|
||||
Set traefik api endpoint credentials
|
||||
"""
|
||||
c.TraefikTomlProxy.traefik_api_username = config["traefik_api"]["username"]
|
||||
c.TraefikTomlProxy.traefik_api_password = config["traefik_api"]["password"]
|
||||
c.TraefikProxy.traefik_api_username = config["traefik_api"]["username"]
|
||||
c.TraefikProxy.traefik_api_password = config["traefik_api"]["password"]
|
||||
https = config["https"]
|
||||
if https["enabled"]:
|
||||
c.TraefikProxy.traefik_entrypoint = "https"
|
||||
else:
|
||||
c.TraefikProxy.traefik_entrypoint = "http"
|
||||
|
||||
|
||||
def set_cull_idle_service(config):
|
||||
|
||||
Reference in New Issue
Block a user