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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fixes
Andras Bacsaiabf271fb688f
diff --git a/apps/api/src/routes/api/v1/settings/handlers.ts b/apps/api/src/routes/api/v1/settings/handlers.tsindex f6364e91dc..f308c0314c 100644--- a/apps/api/src/routes/api/v1/settings/handlers.ts+++ b/apps/api/src/routes/api/v1/settings/handlers.ts@@ -2,7 +2,7 @@ import { promises as dns } from 'dns';import { X509Certificate } from 'node:crypto';import type { FastifyReply, FastifyRequest } from 'fastify';-import { asyncExecShell, checkDomainsIsValidInDNS, decrypt, encrypt, errorHandler, isDNSValid, isDomainConfigured, listSettings, prisma } from '../../../../lib/common';+import { asyncExecShell, checkDomainsIsValidInDNS, decrypt, encrypt, errorHandler, isDev, isDNSValid, isDomainConfigured, listSettings, prisma } from '../../../../lib/common';import { CheckDNS, CheckDomain, DeleteDomain, OnlyIdInBody, SaveSettings, SaveSSHKey } from './types';@@ -91,7 +91,7 @@ export async function checkDomain(request: FastifyRequest<CheckDomain>) {if (found) {throw "Domain already configured";}- if (isDNSCheckEnabled && !forceSave) {+ if (isDNSCheckEnabled && !forceSave && !isDev) {const hostname = request.hostname.split(':')[0]return await checkDomainsIsValidInDNS({ hostname, fqdn, dualCerts });}diff --git a/apps/api/src/routes/webhooks/traefik/handlers.ts b/apps/api/src/routes/webhooks/traefik/handlers.tsindex 03212b95c3..3020b30721 100644--- a/apps/api/src/routes/webhooks/traefik/handlers.ts+++ b/apps/api/src/routes/webhooks/traefik/handlers.ts@@ -128,7 +128,7 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =traefik.http.routers[`${id}-${port || 'default'}-secure`] = {entrypoints: ['websecure'],rule: `(Host(\`${nakedDomain}\`) || Host(\`www.${nakedDomain}\`))${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: isCustomSSL ? true : {certresolver: 'letsencrypt'},@@ -139,7 +139,7 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =traefik.http.routers[`${id}-${port || 'default'}-secure-www`] = {entrypoints: ['websecure'],rule: `Host(\`www.${nakedDomain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: isCustomSSL ? true : {certresolver: 'letsencrypt'},@@ -148,7 +148,7 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =traefik.http.routers[`${id}-${port || 'default'}-secure`] = {entrypoints: ['websecure'],rule: `Host(\`${nakedDomain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: {domains: {main: `${domain}`@@ -161,7 +161,7 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =traefik.http.routers[`${id}-${port || 'default'}-secure-www`] = {entrypoints: ['websecure'],rule: `Host(\`www.${nakedDomain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: {domains: {main: `${domain}`@@ -172,7 +172,7 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =traefik.http.routers[`${id}-${port || 'default'}-secure`] = {entrypoints: ['websecure'],rule: `Host(\`${domain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: isCustomSSL ? true : {certresolver: 'letsencrypt'},@@ -323,7 +323,7 @@ async function serviceConfiguration(traefik: any, remoteId: string | null = nulltraefik.http.routers[`${id}-${port || 'default'}-secure`] = {entrypoints: ['websecure'],rule: `(Host(\`${nakedDomain}\`) || Host(\`www.${nakedDomain}\`))${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: isCustomSSL ? true : {certresolver: 'letsencrypt'},@@ -334,7 +334,7 @@ async function serviceConfiguration(traefik: any, remoteId: string | null = nulltraefik.http.routers[`${id}-${port || 'default'}-secure-www`] = {entrypoints: ['websecure'],rule: `Host(\`www.${nakedDomain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: isCustomSSL ? true : {certresolver: 'letsencrypt'},@@ -343,7 +343,7 @@ async function serviceConfiguration(traefik: any, remoteId: string | null = nulltraefik.http.routers[`${id}-${port || 'default'}-secure`] = {entrypoints: ['websecure'],rule: `Host(\`${nakedDomain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: {domains: {main: `${domain}`@@ -356,7 +356,7 @@ async function serviceConfiguration(traefik: any, remoteId: string | null = nulltraefik.http.routers[`${id}-${port || 'default'}-secure-www`] = {entrypoints: ['websecure'],rule: `Host(\`www.${nakedDomain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: {domains: {main: `${domain}`@@ -367,7 +367,7 @@ async function serviceConfiguration(traefik: any, remoteId: string | null = nulltraefik.http.routers[`${id}-${port || 'default'}-secure`] = {entrypoints: ['websecure'],rule: `Host(\`${domain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: isCustomSSL ? true : {certresolver: 'letsencrypt'},@@ -420,7 +420,7 @@ async function coolifyConfiguration(traefik: any) {traefik.http.routers[`${id}-${port || 'default'}-secure`] = {entrypoints: ['websecure'],rule: `(Host(\`${nakedDomain}\`) || Host(\`www.${nakedDomain}\`))${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: isCustomSSL ? true : {certresolver: 'letsencrypt'},@@ -431,7 +431,7 @@ async function coolifyConfiguration(traefik: any) {traefik.http.routers[`${id}-${port || 'default'}-secure-www`] = {entrypoints: ['websecure'],rule: `Host(\`www.${nakedDomain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: isCustomSSL ? true : {certresolver: 'letsencrypt'},@@ -440,7 +440,7 @@ async function coolifyConfiguration(traefik: any) {traefik.http.routers[`${id}-${port || 'default'}-secure`] = {entrypoints: ['websecure'],rule: `Host(\`${nakedDomain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: {domains: {main: `${domain}`@@ -453,7 +453,7 @@ async function coolifyConfiguration(traefik: any) {traefik.http.routers[`${id}-${port || 'default'}-secure-www`] = {entrypoints: ['websecure'],rule: `Host(\`www.${nakedDomain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: {domains: {main: `${domain}`@@ -464,7 +464,7 @@ async function coolifyConfiguration(traefik: any) {traefik.http.routers[`${id}-${port || 'default'}-secure`] = {entrypoints: ['websecure'],rule: `Host(\`${domain}\`)${pathPrefix ? ` && PathPrefix(\`${pathPrefix}\`)` : ''}`,- service: `${id}`,+ service: `${id}-${port || 'default'}`,tls: isCustomSSL ? true : {certresolver: 'letsencrypt'},