mirror of
https://github.com/andwati/dokploy.git
synced 2026-12-04 16:48:46 +00: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`);
|
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);
|
||||||
|
|||||||
@@ -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}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user