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: Domain check

Andras Bacsai62bfb5dacc0c
diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.ts
index 56c8a9734a..a9a7da877f 100644
--- a/apps/api/src/lib/common.ts
+++ b/apps/api/src/lib/common.ts
@@ -23,7 +23,7 @@ const customConfig: Config = {
length: 3
};
export const isDev = process.env.NODE_ENV === 'development';
-export const version = '3.0.2';
+export const version = '3.0.3';
export const defaultProxyImage = `coolify-haproxy-alpine:latest`;
export const defaultProxyImageTcp = `coolify-haproxy-tcp-alpine:latest`;
@@ -209,7 +209,7 @@ export async function checkDomainsIsValidInDNS({ hostname, fqdn, dualCerts }): P
resolves = await dns.resolve4(hostname);
}
} catch (error) {
- throw `DNS not set correctly or propogated.<br>Please check your DNS settings.`
+ throw { status: 500, message: `DNS not set correctly or propogated.<br>Please check your DNS settings.` }
}
if (dualCerts) {
@@ -231,9 +231,9 @@ export async function checkDomainsIsValidInDNS({ hostname, fqdn, dualCerts }): P
}
}
if (ipDomainFound && ipDomainDualCertFound) return { status: 200 };
- throw false;
+ throw { status: 500, message: `DNS not set correctly or propogated.<br>Please check your DNS settings.` }
} catch (error) {
- throw `DNS not set correctly or propogated.<br>Please check your DNS settings.`
+ throw { status: 500, message: `DNS not set correctly or propogated.<br>Please check your DNS settings.` }
}
} else {
try {
@@ -245,9 +245,9 @@ export async function checkDomainsIsValidInDNS({ hostname, fqdn, dualCerts }): P
}
}
if (ipDomainFound) return { status: 200 };
- throw false;
+ throw { status: 500, message: `DNS not set correctly or propogated.<br>Please check your DNS settings.` }
} catch (error) {
- throw `DNS not set correctly or propogated.<br>Please check your DNS settings.`
+ throw { status: 500, message: `DNS not set correctly or propogated.<br>Please check your DNS settings.` }
}
}
}
diff --git a/apps/ui/src/lib/store.ts b/apps/ui/src/lib/store.ts
index b613843e4b..f6528a261f 100644
--- a/apps/ui/src/lib/store.ts
+++ b/apps/ui/src/lib/store.ts
@@ -18,7 +18,7 @@ interface AppSession {
}
export const loginEmail: Writable<string | undefined> = writable()
export const appSession: Writable<AppSession> = writable({
- version: '3.0.2',
+ version: '3.0.3',
userId: null,
teamId: null,
permission: 'read',