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
fix: temporary disable dns check with dns servers
Andras Bacsai086dd891440e
diff --git a/apps/api/src/routes/api/v1/applications/handlers.ts b/apps/api/src/routes/api/v1/applications/handlers.tsindex d9abbd8524..4f0a2e9fe3 100644--- a/apps/api/src/routes/api/v1/applications/handlers.ts+++ b/apps/api/src/routes/api/v1/applications/handlers.ts@@ -764,7 +764,9 @@ export async function checkDomain(request: FastifyRequest<CheckDomain>) {fqdn,settings: { dualCerts }} = await prisma.application.findUnique({ where: { id }, include: { settings: true } });- return await checkDomainsIsValidInDNS({ hostname: domain, fqdn, dualCerts });+ // TODO: Disabled this because it is having problems with remote docker engines.+ // return await checkDomainsIsValidInDNS({ hostname: domain, fqdn, dualCerts });+ return {};} catch ({ status, message }) {return errorHandler({ status, message });}@@ -805,11 +807,12 @@ export async function checkDNS(request: FastifyRequest<CheckDNS>) {remoteEngine,remoteIpAddress});- if (isDNSCheckEnabled && !isDev && !forceSave) {- let hostname = request.hostname.split(':')[0];- if (remoteEngine) hostname = remoteIpAddress;- return await checkDomainsIsValidInDNS({ hostname, fqdn, dualCerts });- }+ // TODO: Disabled this because it is having problems with remote docker engines.+ // if (isDNSCheckEnabled && !isDev && !forceSave) {+ // let hostname = request.hostname.split(':')[0];+ // if (remoteEngine) hostname = remoteIpAddress;+ // return await checkDomainsIsValidInDNS({ hostname, fqdn, dualCerts });+ // }return {};} catch ({ status, message }) {return errorHandler({ status, message });diff --git a/apps/api/src/routes/api/v1/services/handlers.ts b/apps/api/src/routes/api/v1/services/handlers.tsindex f090689b1d..23e63ead92 100644--- a/apps/api/src/routes/api/v1/services/handlers.ts+++ b/apps/api/src/routes/api/v1/services/handlers.ts@@ -505,7 +505,9 @@ export async function checkServiceDomain(request: FastifyRequest<CheckServiceDomconst { id } = request.paramsconst { domain } = request.queryconst { fqdn, dualCerts } = await prisma.service.findUnique({ where: { id } })- return await checkDomainsIsValidInDNS({ hostname: domain, fqdn, dualCerts });+ // TODO: Disabled this because it is having problems with remote docker engines.+ // return await checkDomainsIsValidInDNS({ hostname: domain, fqdn, dualCerts });+ return {}} catch ({ status, message }) {return errorHandler({ status, message })}@@ -531,11 +533,12 @@ export async function checkService(request: FastifyRequest<CheckService>) {throw { status: 500, message: `Domain ${getDomain(fqdn).replace('www.', '')} is already in use!` }}if (exposePort) await checkExposedPort({ id, configuredPort, exposePort, engine, remoteEngine, remoteIpAddress })- if (isDNSCheckEnabled && !isDev && !forceSave) {- let hostname = request.hostname.split(':')[0];- if (remoteEngine) hostname = remoteIpAddress;- return await checkDomainsIsValidInDNS({ hostname, fqdn, dualCerts });- }+ // TODO: Disabled this because it is having problems with remote docker engines.+ // if (isDNSCheckEnabled && !isDev && !forceSave) {+ // let hostname = request.hostname.split(':')[0];+ // if (remoteEngine) hostname = remoteIpAddress;+ // return await checkDomainsIsValidInDNS({ hostname, fqdn, dualCerts });+ // }return {}} catch ({ status, message }) {return errorHandler({ status, message })