mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): ✨ Add x-forwarded-for and x-forwarded-proto support
This commit is contained in:
parent
b35e54c9b4
commit
8ec1c6d027
4 changed files with 36 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue