diff --git a/apps/api/src/routes/webhooks/traefik/handlers.ts b/apps/api/src/routes/webhooks/traefik/handlers.ts index 114d3f014..8b6e9a775 100644 --- a/apps/api/src/routes/webhooks/traefik/handlers.ts +++ b/apps/api/src/routes/webhooks/traefik/handlers.ts @@ -39,8 +39,8 @@ async function applicationConfiguration(traefik: any, remoteId: string | null = const services = Object.entries(JSON.parse(dockerComposeConfiguration)) for (const service of services) { const [key, value] = service - const { port: customPort, fqdn } = value - if (fqdn) { + if (value.fqdn) { + const { fqdn } = value const domain = getDomain(fqdn); const nakedDomain = domain.replace(/^www\./, ''); const isHttps = fqdn.startsWith('https://'); @@ -48,7 +48,7 @@ async function applicationConfiguration(traefik: any, remoteId: string | null = configurableApplications.push({ id: `${id}-${key}`, container: `${id}-${key}`, - port: customPort ? customPort : port || 3000, + port: value.customPort ? value.customPort : port || 3000, domain, nakedDomain, isRunning,