Skip to content

Commit

Permalink
fix: regresssion causing tls config removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Morriz committed Oct 9, 2024
1 parent b4d37f9 commit da6d9b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tpl/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ services:
{%- if i.router != Router.udp %}
{%- set domains = ([i.tls.main] + i.tls.sans) if (i.tls and i.tls.main) else [i.domain] %}
- 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 %}
{%- if i.tls and i.tls.main %}
- traefik.{{ router }}.routers.{{ name }}.tls.certresolver=letsencrypt
{%- if i.tls.main %}
- traefik.{{ router }}.routers.{{ name }}.tls.domains[0].main={{ i.tls.main }}
{%- for s in i.tls.sans %}
- traefik.{{ router }}.routers.{{ name }}.tls.domains[0].sans[{{ loop.index0 }}]={{ s }}
Expand Down

0 comments on commit da6d9b8

Please sign in to comment.