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: nope if you are not logged in
Andras Bacsai772c0d1e416b
diff --git a/apps/api/src/routes/api/v1/base/index.ts b/apps/api/src/routes/api/v1/base/index.tsindex f1b64baf38..76854af8a8 100644--- a/apps/api/src/routes/api/v1/base/index.ts+++ b/apps/api/src/routes/api/v1/base/index.ts@@ -2,12 +2,13 @@ import { FastifyPluginAsync } from 'fastify';import { errorHandler, listSettings, version } from '../../../../lib/common';const root: FastifyPluginAsync = async (fastify): Promise<void> => {- fastify.get('/', async () => {+ fastify.get('/', async (request) => {+ const teamId = request.user?.teamId;const settings = await listSettings()try {return {- ipv4: settings.ipv4,- ipv6: settings.ipv6,+ ipv4: teamId ? settings.ipv4 : 'nope',+ ipv6: teamId ? settings.ipv6 : 'nope',version,whiteLabeled: process.env.COOLIFY_WHITE_LABELED === 'true',whiteLabeledIcon: process.env.COOLIFY_WHITE_LABELED_ICON,