mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-06 12:19:50 +00:00
Add disable_private_http_placeholder
This commit is contained in:
@@ -109,7 +109,11 @@ export const privateConfigSchema = z
|
|||||||
enable_redis: z.boolean().optional().default(false),
|
enable_redis: z.boolean().optional().default(false),
|
||||||
use_pangolin_dns: z.boolean().optional().default(false),
|
use_pangolin_dns: z.boolean().optional().default(false),
|
||||||
use_org_only_idp: z.boolean().optional(),
|
use_org_only_idp: z.boolean().optional(),
|
||||||
enable_acme_cert_sync: z.boolean().optional().default(true)
|
enable_acme_cert_sync: z.boolean().optional().default(true),
|
||||||
|
disable_private_http_placeholder: z
|
||||||
|
.boolean()
|
||||||
|
.optional()
|
||||||
|
.default(false)
|
||||||
})
|
})
|
||||||
.optional()
|
.optional()
|
||||||
.prefault({}),
|
.prefault({}),
|
||||||
|
|||||||
@@ -410,7 +410,11 @@ export async function getTraefikConfig(
|
|||||||
fullDomain: string | null;
|
fullDomain: string | null;
|
||||||
mode: "http" | "host" | "cidr" | "ssh";
|
mode: "http" | "host" | "cidr" | "ssh";
|
||||||
}[] = [];
|
}[] = [];
|
||||||
if (build == "enterprise") {
|
if (
|
||||||
|
build == "enterprise" &&
|
||||||
|
!privateConfig.getRawPrivateConfig().flags
|
||||||
|
.disable_private_http_placeholder
|
||||||
|
) {
|
||||||
// we dont want to do this on the cloud
|
// we dont want to do this on the cloud
|
||||||
// Query siteResources in HTTP mode with SSL enabled and aliases - cert generation / HTTPS edge
|
// Query siteResources in HTTP mode with SSL enabled and aliases - cert generation / HTTPS edge
|
||||||
siteResourcesWithFullDomain = await db
|
siteResourcesWithFullDomain = await db
|
||||||
|
|||||||
Reference in New Issue
Block a user