Fix entryPoints templating
This commit is contained in:
parent
0efc680268
commit
d7b451d41c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue