diff --git a/server/routers/traefik/getTraefikConfig.ts b/server/routers/traefik/getTraefikConfig.ts index aea71cd9..3eec2b19 100644 --- a/server/routers/traefik/getTraefikConfig.ts +++ b/server/routers/traefik/getTraefikConfig.ts @@ -37,7 +37,12 @@ export async function traefikConfigProvider( const tls = { certResolver: config.traefik.cert_resolver, ...(config.traefik.prefer_wildcard_cert - ? { domains: [baseDomain, `*.${baseDomain}`] } + ? { + domains: { + main: baseDomain, + sans: [`*.${baseDomain}`], + }, + } : {}), };