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

View File

@ -407,20 +407,22 @@ export async function traefikConfiguration(request, reply) {
} }
} }
} else { } else {
let port = found.services[oneService].ports[0] if (found.services[oneService].ports) {
const foundPortVariable = serviceSetting.find((a) => a.name.toLowerCase() === 'port') let port = found.services[oneService].ports[0]
if (foundPortVariable) { const foundPortVariable = serviceSetting.find((a) => a.name.toLowerCase() === 'port')
port = foundPortVariable.value if (foundPortVariable) {
} port = foundPortVariable.value
if (fqdn) { }
data.services.push({ if (fqdn) {
id: oneService, data.services.push({
configuration: { id: oneService,
port configuration: {
}, port
fqdn, },
dualCerts, fqdn,
}); dualCerts,
});
}
} }
} }
} }