feat(api): Add x-forwarded-for and x-forwarded-proto support

This commit is contained in:
Jesse Wierzbinski 2025-12-11 01:19:08 +01:00
parent b35e54c9b4
commit 8ec1c6d027
No known key found for this signature in database
4 changed files with 36 additions and 1 deletions

View file

@ -384,6 +384,7 @@ export const ConfigSchema = z
),
bind: z.string().min(1).default("0.0.0.0"),
bind_port: unixPort.default(8080),
proxy_ips: z.array(ip).default([]),
banned_ips: z.array(ip).default([]),
banned_user_agents: z.array(regex).default([]),
proxy_address: url