fix: use letsencrypt-dns resolver for vibn-dev preview Traefik routes

The *.preview.vibnai.com wildcard cert is issued via DNS-01 and stored
under the letsencrypt-dns resolver. Using letsencrypt (HTTP challenge)
would cause Traefik to attempt individual per-subdomain certs instead
of using the existing wildcard.

Made-with: Cursor
This commit is contained in:
2026-04-30 19:02:45 -07:00
parent b21e6ea038
commit cbd4ab44a5

View File

@@ -162,7 +162,7 @@ function renderDevCompose(projectSlug: string, projectId: string): string {
traefikLabels.push(`"traefik.http.routers.${router}.rule=Host(\`${host}\`)"`);
traefikLabels.push(`"traefik.http.routers.${router}.entrypoints=https"`);
traefikLabels.push(`"traefik.http.routers.${router}.tls=true"`);
traefikLabels.push(`"traefik.http.routers.${router}.tls.certresolver=letsencrypt"`);
traefikLabels.push(`"traefik.http.routers.${router}.tls.certresolver=letsencrypt-dns"`);
traefikLabels.push(`"traefik.http.services.${router}.loadbalancer.server.port=${port}"`);
traefikLabels.push(`"traefik.http.routers.${router}.service=${router}"`);
}