mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
move generating traefik basic auth to traefik.py
compute this when we write the template, not when we load config
This commit is contained in:
@@ -41,11 +41,11 @@ idleTimeout = "10m0s"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
[entryPoints.auth_api]
|
||||
address = "127.0.0.1:{{auth_api['port']}}"
|
||||
address = "127.0.0.1:{{traefik_api['port']}}"
|
||||
[entryPoints.auth_api.whiteList]
|
||||
sourceRange = ['{{auth_api['ip']}}']
|
||||
sourceRange = ['{{traefik_api['ip']}}']
|
||||
[entryPoints.auth_api.auth.basic]
|
||||
users = ['{{auth_api['basic_auth']}}']
|
||||
users = ['{{ traefik_api['basic_auth'] }}']
|
||||
|
||||
[wss]
|
||||
protocol = "http"
|
||||
|
||||
Reference in New Issue
Block a user