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:
Min RK
2019-02-22 10:53:36 +01:00
parent 436610f83e
commit 23ea539b28
3 changed files with 24 additions and 17 deletions

View File

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