mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-12 19:18:30 +00:00
add defaults for domain cert resolver and prefer wildcard cert
This commit is contained in:
@@ -128,7 +128,9 @@ export const configSchema = z
|
|||||||
.object({
|
.object({
|
||||||
http_entrypoint: z.string().optional().default("web"),
|
http_entrypoint: z.string().optional().default("web"),
|
||||||
https_entrypoint: z.string().optional().default("websecure"),
|
https_entrypoint: z.string().optional().default("websecure"),
|
||||||
additional_middlewares: z.array(z.string()).optional()
|
additional_middlewares: z.array(z.string()).optional(),
|
||||||
|
cert_resolver: z.string().optional().default("letsencrypt"),
|
||||||
|
prefer_wildcard_cert: z.boolean().optional().default(false)
|
||||||
})
|
})
|
||||||
.optional()
|
.optional()
|
||||||
.default({}),
|
.default({}),
|
||||||
@@ -157,13 +159,16 @@ export const configSchema = z
|
|||||||
})
|
})
|
||||||
.optional()
|
.optional()
|
||||||
.default({}),
|
.default({}),
|
||||||
orgs: z.object({
|
orgs: z
|
||||||
block_size: z.number().positive().gt(0).optional().default(24),
|
.object({
|
||||||
subnet_group: z.string().optional().default("100.90.128.0/24")
|
block_size: z.number().positive().gt(0).optional().default(24),
|
||||||
}).optional().default({
|
subnet_group: z.string().optional().default("100.90.128.0/24")
|
||||||
block_size: 24,
|
})
|
||||||
subnet_group: "100.90.128.0/24"
|
.optional()
|
||||||
}),
|
.default({
|
||||||
|
block_size: 24,
|
||||||
|
subnet_group: "100.90.128.0/24"
|
||||||
|
}),
|
||||||
rate_limits: z
|
rate_limits: z
|
||||||
.object({
|
.object({
|
||||||
global: z
|
global: z
|
||||||
@@ -242,7 +247,7 @@ export const configSchema = z
|
|||||||
{
|
{
|
||||||
message: "At least one domain must be defined"
|
message: "At least one domain must be defined"
|
||||||
}
|
}
|
||||||
)
|
);
|
||||||
|
|
||||||
export function readConfigFile() {
|
export function readConfigFile() {
|
||||||
const loadConfig = (configPath: string) => {
|
const loadConfig = (configPath: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user