mirror of
https://github.com/dokploy/dokploy.git
synced 2026-06-14 03:19:49 +00:00
* fix: add tls=true label for compose domains when certificateType is none (#4018) * test: cover tls=true label for certificateType none, require https * fix: scope tls fix to compose labels, leave traefik file config unchanged (#4018)
This commit is contained in:
@@ -337,6 +337,10 @@ export const createDomainLabels = (
|
||||
labels.push(
|
||||
`traefik.http.routers.${routerName}.tls.certresolver=${customCertResolver}`,
|
||||
);
|
||||
} else if (certificateType === "none" && https) {
|
||||
// No cert resolver, but HTTPS is enabled (default/custom certificate):
|
||||
// explicitly enable TLS so Traefik serves the router over HTTPS.
|
||||
labels.push(`traefik.http.routers.${routerName}.tls=true`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user