mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: add path prefix only if the path is other than "/"
This commit is contained in:
@@ -268,7 +268,7 @@ export const createDomainLabels = async (
|
|||||||
`traefik.http.routers.${routerName}.service=${routerName}`,
|
`traefik.http.routers.${routerName}.service=${routerName}`,
|
||||||
];
|
];
|
||||||
|
|
||||||
if (domain.path) {
|
if (domain.path && domain.path.length > 0 && domain.path !== "/") {
|
||||||
labels.push(
|
labels.push(
|
||||||
`traefik.http.routers.${routerName}.rule=PathPrefix(\`${domain.path}\`)`,
|
`traefik.http.routers.${routerName}.rule=PathPrefix(\`${domain.path}\`)`,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user