ansible-role-traefik/templates/conf.d/50-easy-tcp.toml

18 lines
404 B
TOML
Raw Normal View History

2020-11-27 12:39:51 +01:00
{% for r in traefik_tcp_proxy %}
#---------------------------------
# {{ r.name }}: {{ r.rule }}
#---------------------------------
[tcp.routers.{{r.name}}]
entryPoints = {{r.entryPoints}}
2020-11-27 12:52:52 +01:00
rule = "{{r.rule }}"
2020-11-27 12:39:51 +01:00
service = "{{r.name}}"
[tcp.services.{{r.name}}.loadBalancer]
{% for addr in r.addresses %}
[[tcp.services.{{r.name}}.loadBalancer.servers]]
address = "{{addr.to}}"
{% endfor %}
{% endfor %}