add traefik settings to config and use fullDomain

This commit is contained in:
Milo Schwartz 2024-10-22 00:09:27 -04:00
parent 1c4608fbf4
commit 6d9731f071
No known key found for this signature in database
5 changed files with 45 additions and 52 deletions

View file

@ -10,7 +10,6 @@ const environmentSchema = z.object({
app: z.object({
name: z.string(),
base_url: z.string().url(),
base_domain: z.string(),
log_level: z.enum(["debug", "info", "warn", "error"]),
save_logs: z.string().transform((val) => val === "true"),
}),
@ -26,6 +25,11 @@ const environmentSchema = z.object({
internal_hostname: z.string(),
secure_cookies: z.string().transform((val) => val === "true"),
}),
traefik: z.object({
http_entrypoint: z.string(),
https_entrypoint: z.string().optional(),
cert_resolver: z.string().optional(),
}),
rate_limit: z.object({
window_minutes: z
.string()