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:
@@ -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}"`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user