Skip to content

Commit 03be19f

Browse files
fix(docker): add tls=true label when certificateType is 'none'
When configuring HTTPS with certificateType='none' in Docker Compose applications, Traefik was not generating the tls=true label on the websecure router, causing HTTPS requests to return 404. This fix adds the missing tls=true label for certificateType='none', allowing Traefik to properly handle TLS termination. Closes #4018
1 parent ddff8b9 commit 03be19f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/server/src/utils/docker/domain.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ export const createDomainLabels = (
337337
labels.push(
338338
`traefik.http.routers.${routerName}.tls.certresolver=${customCertResolver}`,
339339
);
340+
} else if (certificateType === "none") {
341+
labels.push(`traefik.http.routers.${routerName}.tls=true`);
340342
}
341343
}
342344

0 commit comments

Comments
 (0)