diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.ts index ba2015e09..02f932613 100644 --- a/apps/api/src/lib/common.ts +++ b/apps/api/src/lib/common.ts @@ -19,7 +19,7 @@ import { saveBuildLog, saveDockerRegistryCredentials } from './buildPacks/common import { scheduler } from './scheduler'; import type { ExecaChildProcess } from 'execa'; -export const version = '3.12.13'; +export const version = '3.12.14'; export const isDev = process.env.NODE_ENV === 'development'; export const sentryDSN = 'https://409f09bcb7af47928d3e0f46b78987f3@o1082494.ingest.sentry.io/4504236622217216'; diff --git a/apps/api/src/routes/webhooks/traefik/handlers.ts b/apps/api/src/routes/webhooks/traefik/handlers.ts index bba258e4f..2d1c91775 100644 --- a/apps/api/src/routes/webhooks/traefik/handlers.ts +++ b/apps/api/src/routes/webhooks/traefik/handlers.ts @@ -50,6 +50,9 @@ function generateRouters( isHttp2 = false ) { let rule = `Host(\`${nakedDomain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`; + let ruleWWW = `Host(\`www.${nakedDomain}\`)${ + pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : '' + }`; let http: any = { entrypoints: ['web'], rule, @@ -69,14 +72,14 @@ function generateRouters( }; let httpWWW: any = { entrypoints: ['web'], - rule, + rule: ruleWWW, service: `${serviceId}`, priority: 2, middlewares: [] }; let httpsWWW: any = { entrypoints: ['websecure'], - rule, + rule: ruleWWW, service: `${serviceId}`, priority: 2, tls: { diff --git a/package.json b/package.json index f59ebd58c..9ace8b3e1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "coolify", "description": "An open-source & self-hostable Heroku / Netlify alternative.", - "version": "3.12.13", + "version": "3.12.14", "license": "Apache-2.0", "repository": "github:coollabsio/coolify", "scripts": {