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
feat: ssl cert on traefik config
Andras Bacsaif379ef6a3b00
diff --git a/apps/api/src/routes/webhooks/traefik/handlers.ts b/apps/api/src/routes/webhooks/traefik/handlers.tsindex cd2d80023f..d46b23af84 100644--- a/apps/api/src/routes/webhooks/traefik/handlers.ts+++ b/apps/api/src/routes/webhooks/traefik/handlers.ts@@ -546,7 +546,19 @@ export async function traefikOtherConfiguration(request: FastifyRequest<TraefikOexport async function remoteTraefikConfiguration(request: FastifyRequest<OnlyId>) {const { id } = request.paramstry {+ const sslpath = '/etc/traefik/acme/custom';+ const certificates = await prisma.certificate.findMany({ where: { team: { destinationDocker: { some: { id, remoteEngine: true, isCoolifyProxyUsed: true, remoteVerified: true } } } } })+ let parsedCertificates = []+ for (const certificate of certificates) {+ parsedCertificates.push({+ certFile: `${sslpath}/${certificate.id}-cert.pem`,+ keyFile: `${sslpath}/${certificate.id}-key.pem`+ })+ }const traefik = {+ tls: {+ certificates: parsedCertificates+ },http: {routers: {},services: {},