Fix entryPoints templating

This commit is contained in:
Daniel Berteaud 2023-10-16 16:44:14 +02:00
parent 0efc680268
commit d7b451d41c
1 changed files with 3 additions and 6 deletions

View File

@ -18,8 +18,8 @@ entryPoints:
[[- if gt (len $.traefik.trusted_proxies) 0 ]]
proxyProtocol:
trustedIPs:[[ range $idx, $ip := $.traefik.trusted_proxies ]]
- [[ $ip ]]
[[ end ]]
- [[ $ip ]][[ end ]]
[[- end ]]
[[- if has $def "http" ]]
http:
[[ $def.http | toYAML | indent 6 ]]
@ -30,14 +30,11 @@ entryPoints:
[[- if and (has $def "middlewares") (gt (len $def.middlewares)) ]]
middlewares:
[[- range $def.middlewares ]]
- [[ . ]]
[[- end ]]
- [[ . ]][[ end ]]
[[- end ]]
[[- end ]]
[[- end ]]
[[- end ]]
api:
dashboard: True