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
commit a331020bf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -140,7 +140,7 @@ export const UpdatePort = ({ portId }: Props) => {
<FormItem> <FormItem>
<FormLabel>Target Port</FormLabel> <FormLabel>Target Port</FormLabel>
<FormControl> <FormControl>
<Input placeholder="1-65535" {...field} /> <NumberInput placeholder="1-65535" {...field} />
</FormControl> </FormControl>
<FormMessage /> <FormMessage />

View File

@ -268,6 +268,12 @@ export const createDomainLabels = async (
`traefik.http.routers.${routerName}.service=${routerName}`, `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) { if (entrypoint === "web" && https) {
labels.push( labels.push(
`traefik.http.routers.${routerName}.middlewares=redirect-to-https@file`, `traefik.http.routers.${routerName}.middlewares=redirect-to-https@file`,