This commit is contained in:
Andras Bacsai 2022-11-03 13:46:51 +01:00
parent 7627d59d43
commit c2d4390a72

View File

@ -39,8 +39,8 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =
const services = Object.entries(JSON.parse(dockerComposeConfiguration))
for (const service of services) {
const [key, value] = service
const { port: customPort, fqdn } = value
if (fqdn) {
if (value.fqdn) {
const { fqdn } = value
const domain = getDomain(fqdn);
const nakedDomain = domain.replace(/^www\./, '');
const isHttps = fqdn.startsWith('https://');
@ -48,7 +48,7 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =
configurableApplications.push({
id: `${id}-${key}`,
container: `${id}-${key}`,
port: customPort ? customPort : port || 3000,
port: value.customPort ? value.customPort : port || 3000,
domain,
nakedDomain,
isRunning,