fix wh
This commit is contained in:
parent
7627d59d43
commit
c2d4390a72
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user