remove debug

This commit is contained in:
Andras Bacsai 2022-11-03 13:47:49 +01:00
parent c2d4390a72
commit 0ecf86d8a3

View File

@ -5,7 +5,6 @@ import { OnlyId } from "../../../types";
import { getTemplates } from "../../../lib/services"; import { getTemplates } from "../../../lib/services";
async function applicationConfiguration(traefik: any, remoteId: string | null = null) { async function applicationConfiguration(traefik: any, remoteId: string | null = null) {
console.log({ type: 'applications', remoteId })
let applications = [] let applications = []
if (remoteId) { if (remoteId) {
applications = await prisma.application.findMany({ applications = await prisma.application.findMany({
@ -21,7 +20,6 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =
const configurableApplications = [] const configurableApplications = []
if (applications.length > 0) { if (applications.length > 0) {
for (const application of applications) { for (const application of applications) {
console.log(application)
const { const {
fqdn, fqdn,
id, id,
@ -114,7 +112,6 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =
} }
} }
for (const application of configurableApplications) { for (const application of configurableApplications) {
console.log(application.id)
let { id, port, isCustomSSL, pathPrefix, isHttps, nakedDomain, isWWW, domain, dualCerts } = application let { id, port, isCustomSSL, pathPrefix, isHttps, nakedDomain, isWWW, domain, dualCerts } = application
if (isHttps) { if (isHttps) {
traefik.http.routers[`${id}-${port || 'default'}`] = generateHttpRouter(`${id}-${port || 'default'}`, nakedDomain, pathPrefix) traefik.http.routers[`${id}-${port || 'default'}`] = generateHttpRouter(`${id}-${port || 'default'}`, nakedDomain, pathPrefix)
@ -196,7 +193,6 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =
} }
} }
async function serviceConfiguration(traefik: any, remoteId: string | null = null) { async function serviceConfiguration(traefik: any, remoteId: string | null = null) {
console.log({ type: 'services', remoteId })
let services = []; let services = [];
if (remoteId) { if (remoteId) {
services = await prisma.service.findMany({ services = await prisma.service.findMany({