mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-11 18:38:15 +00:00
make cookies work with multi-domain
This commit is contained in:
@@ -41,7 +41,9 @@ const configSchema = z.object({
|
||||
domains: z.record(
|
||||
z.string(),
|
||||
z.object({
|
||||
base_domain: hostnameSchema.transform((url) => url.toLowerCase())
|
||||
base_domain: hostnameSchema.transform((url) => url.toLowerCase()),
|
||||
cert_resolver: z.string(),
|
||||
prefer_wildcard_cert: z.boolean().optional()
|
||||
})
|
||||
),
|
||||
server: z.object({
|
||||
@@ -89,8 +91,6 @@ const configSchema = z.object({
|
||||
traefik: z.object({
|
||||
http_entrypoint: z.string(),
|
||||
https_entrypoint: z.string().optional(),
|
||||
cert_resolver: z.string().optional(),
|
||||
prefer_wildcard_cert: z.boolean().optional(),
|
||||
additional_middlewares: z.array(z.string()).optional()
|
||||
}),
|
||||
gerbil: z.object({
|
||||
@@ -290,6 +290,10 @@ export class Config {
|
||||
);
|
||||
}
|
||||
|
||||
public getDomain(domainId: string) {
|
||||
return this.rawConfig.domains[domainId];
|
||||
}
|
||||
|
||||
private createTraefikConfig() {
|
||||
try {
|
||||
// check if traefik_config.yml and dynamic_config.yml exists in APP_PATH/traefik
|
||||
|
||||
Reference in New Issue
Block a user