Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix wh

Andras Bacsaic2d4390a72d9
diff --git a/apps/api/src/routes/webhooks/traefik/handlers.ts b/apps/api/src/routes/webhooks/traefik/handlers.ts
index 114d3f014f..8b6e9a7752 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,