This commit is contained in:
Andras Bacsai 2022-10-26 09:35:56 +02:00
parent 4bcd034b3d
commit 54e0a9fc28

View File

@ -407,6 +407,7 @@ export async function traefikConfiguration(request, reply) {
} }
} }
} else { } else {
if (found.services[oneService].ports) {
let port = found.services[oneService].ports[0] let port = found.services[oneService].ports[0]
const foundPortVariable = serviceSetting.find((a) => a.name.toLowerCase() === 'port') const foundPortVariable = serviceSetting.find((a) => a.name.toLowerCase() === 'port')
if (foundPortVariable) { if (foundPortVariable) {
@ -427,6 +428,7 @@ export async function traefikConfiguration(request, reply) {
} }
} }
} }
}
for (const service of data.services) { for (const service of data.services) {
let { id, fqdn, dualCerts, configuration, isCustomSSL = false } = service let { id, fqdn, dualCerts, configuration, isCustomSSL = false } = service
let port, pathPrefix, customDomain; let port, pathPrefix, customDomain;