mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-19 18:24:43 +02:00
make cookies work with multi-domain
This commit is contained in:
parent
c877bb1187
commit
ff37e07ce6
4 changed files with 24 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue