fix: domain path ignored in compose services

This commit is contained in:
Jakub Bordáš
2024-11-04 23:59:20 +01:00
parent dfa73a3d7c
commit 1b1d0597fe

View File

@@ -268,6 +268,12 @@ export const createDomainLabels = async (
`traefik.http.routers.${routerName}.service=${routerName}`,
];
if (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`,