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))
|
const services = Object.entries(JSON.parse(dockerComposeConfiguration))
|
||||||
for (const service of services) {
|
for (const service of services) {
|
||||||
const [key, value] = service
|
const [key, value] = service
|
||||||
const { port: customPort, fqdn } = value
|
if (value.fqdn) {
|
||||||
if (fqdn) {
|
const { fqdn } = value
|
||||||
const domain = getDomain(fqdn);
|
const domain = getDomain(fqdn);
|
||||||
const nakedDomain = domain.replace(/^www\./, '');
|
const nakedDomain = domain.replace(/^www\./, '');
|
||||||
const isHttps = fqdn.startsWith('https://');
|
const isHttps = fqdn.startsWith('https://');
|
||||||
@ -48,7 +48,7 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =
|
|||||||
configurableApplications.push({
|
configurableApplications.push({
|
||||||
id: `${id}-${key}`,
|
id: `${id}-${key}`,
|
||||||
container: `${id}-${key}`,
|
container: `${id}-${key}`,
|
||||||
port: customPort ? customPort : port || 3000,
|
port: value.customPort ? value.customPort : port || 3000,
|
||||||
domain,
|
domain,
|
||||||
nakedDomain,
|
nakedDomain,
|
||||||
isRunning,
|
isRunning,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user