Merge branch 'Dokploy:canary' into feature/gpu-support-blender-template

This commit is contained in:
Vishal kadam
2024-11-07 03:09:31 +05:30
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -268,6 +268,12 @@ export const createDomainLabels = async (
`traefik.http.routers.${routerName}.service=${routerName}`,
];
if (domain.path && domain.path.length > 0 && domain.path !== "/") {
labels.push(
`traefik.http.routers.${routerName}.rule=PathPrefix(\`${domain.path}\`)`,
);
}
if (entrypoint === "web" && https) {
labels.push(
`traefik.http.routers.${routerName}.middlewares=redirect-to-https@file`,