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
test allowedlist
Andras Bacsaif4cd93bd362c
diff --git a/apps/api/src/index.ts b/apps/api/src/index.tsindex 289b2fddf7..bd2fe73b35 100644--- a/apps/api/src/index.ts+++ b/apps/api/src/index.ts@@ -5,7 +5,7 @@ import env from '@fastify/env';import cookie from '@fastify/cookie';import path, { join } from 'path';import autoLoad from '@fastify/autoload';-import { asyncExecShell, createRemoteEngineConfiguration, isDev, listSettings, prisma, version } from './lib/common';+import { asyncExecShell, createRemoteEngineConfiguration, getDomain, isDev, listSettings, prisma, version } from './lib/common';import { scheduler } from './lib/scheduler';import { compareVersions } from 'compare-versions';import Graceful from '@ladjs/graceful'@@ -100,9 +100,9 @@ fastify.addHook('onRequest', async (request, reply) => {let allowedList = ['coolify:3000'];const { ipv4, ipv6, fqdn } = await prisma.setting.findFirst({})- ipv4 && allowedList.push(ipv4);+ ipv4 && allowedList.push(`${ipv4}:3000`);ipv6 && allowedList.push(ipv6);- fqdn && allowedList.push(fqdn);+ fqdn && allowedList.push(getDomain(fqdn));const remotes = await prisma.destinationDocker.findMany({ where: { remoteEngine: true, remoteVerified: true } })if (remotes.length > 0) {