[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-10-25 07:11:54 +00:00
committed by GitHub
parent 84d311802f
commit 90bd276ad4
7 changed files with 23 additions and 12 deletions
+5 -1
View File
@@ -220,7 +220,11 @@ export const addDomainToCompose = async (
throw new Error(`The service ${serviceName} not found in the compose`); throw new Error(`The service ${serviceName} not found in the compose`);
} }
const httpLabels = createDomainLabels(appName, domain, domain.customEntrypoint || "web"); const httpLabels = createDomainLabels(
appName,
domain,
domain.customEntrypoint || "web",
);
if (domain.customEntrypoint == null && https) { if (domain.customEntrypoint == null && https) {
const httpsLabels = createDomainLabels(appName, domain, "websecure"); const httpsLabels = createDomainLabels(appName, domain, "websecure");
httpLabels.push(...httpsLabels); httpLabels.push(...httpsLabels);
+9 -2
View File
@@ -112,8 +112,15 @@ export const createRouterConfig = async (
const { appName, redirects, security } = app; const { appName, redirects, security } = app;
const { certificateType } = domain; const { certificateType } = domain;
const { host, path, https, uniqueConfigKey, internalPath, stripPath, customEntrypoint } = const {
domain; host,
path,
https,
uniqueConfigKey,
internalPath,
stripPath,
customEntrypoint,
} = domain;
const routerConfig: HttpRouter = { const routerConfig: HttpRouter = {
rule: `Host(\`${host}\`)${path !== null && path !== "/" ? ` && PathPrefix(\`${path}\`)` : ""}`, rule: `Host(\`${host}\`)${path !== null && path !== "/" ? ` && PathPrefix(\`${path}\`)` : ""}`,
service: `${appName}-service-${uniqueConfigKey}`, service: `${appName}-service-${uniqueConfigKey}`,