Skip to content

Commit da6d9b8

Browse files
committed
fix: regresssion causing tls config removed
1 parent b4d37f9 commit da6d9b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tpl/docker-compose.yml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ services:
5454
{%- if i.router != Router.udp %}
5555
{%- set domains = ([i.tls.main] + i.tls.sans) if (i.tls and i.tls.main) else [i.domain] %}
5656
- traefik.{{ router }}.routers.{{ name }}.rule={% for d in domains %}Host{% if i.router == Router.tcp %}SNI{% endif %}(`{{ d }}`){% if not loop.last %} || {% endif %}{% endfor %}{% if i.path_prefix %} && PathPrefix(`{{ i.path_prefix }}`){% endif %}
57-
{%- if i.tls and i.tls.main %}
57+
- traefik.{{ router }}.routers.{{ name }}.tls.certresolver=letsencrypt
58+
{%- if i.tls.main %}
5859
- traefik.{{ router }}.routers.{{ name }}.tls.domains[0].main={{ i.tls.main }}
5960
{%- for s in i.tls.sans %}
6061
- traefik.{{ router }}.routers.{{ name }}.tls.domains[0].sans[{{ loop.index0 }}]={{ s }}

0 commit comments

Comments
 (0)