From 0bbb476bf63b72f415e829ffdba6b480bccf03d0 Mon Sep 17 00:00:00 2001 From: netr0m Date: Fri, 20 Oct 2023 23:40:07 +0200 Subject: [PATCH] feat(traefik): use wildcard certs for extra hosts --- templates/etc/traefik/config/http.yml.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/etc/traefik/config/http.yml.j2 b/templates/etc/traefik/config/http.yml.j2 index dc6c8ed..6633f86 100644 --- a/templates/etc/traefik/config/http.yml.j2 +++ b/templates/etc/traefik/config/http.yml.j2 @@ -10,6 +10,10 @@ http: rule: Host(`{{ service.subdomain | default(service.shortname) }}.{{ svc_domain }}`) tls: certResolver: {{ svc_traefik_dns_challenge_provider }} + domains: + - main: {{ svc_domain }} + sans: + - "*.{{ svc_domain }}" {% endfor %} middlewares: {{ svc_traefik_middlewares_default | combine(svc_traefik_middlewares | default({})) | combine(svc_traefik_middlewares_extra | default({})) }}