mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-08 15:35:23 +02:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -220,7 +220,11 @@ export const addDomainToCompose = async (
|
||||
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) {
|
||||
const httpsLabels = createDomainLabels(appName, domain, "websecure");
|
||||
httpLabels.push(...httpsLabels);
|
||||
@@ -304,7 +308,7 @@ export const createDomainLabels = (
|
||||
const {
|
||||
host,
|
||||
port,
|
||||
customEntrypoint,
|
||||
customEntrypoint,
|
||||
https,
|
||||
uniqueConfigKey,
|
||||
certificateType,
|
||||
|
||||
@@ -112,8 +112,15 @@ export const createRouterConfig = async (
|
||||
const { appName, redirects, security } = app;
|
||||
const { certificateType } = domain;
|
||||
|
||||
const { host, path, https, uniqueConfigKey, internalPath, stripPath, customEntrypoint } =
|
||||
domain;
|
||||
const {
|
||||
host,
|
||||
path,
|
||||
https,
|
||||
uniqueConfigKey,
|
||||
internalPath,
|
||||
stripPath,
|
||||
customEntrypoint,
|
||||
} = domain;
|
||||
const routerConfig: HttpRouter = {
|
||||
rule: `Host(\`${host}\`)${path !== null && path !== "/" ? ` && PathPrefix(\`${path}\`)` : ""}`,
|
||||
service: `${appName}-service-${uniqueConfigKey}`,
|
||||
|
||||
Reference in New Issue
Block a user