mirror of
https://github.com/versia-pub/server.git
synced 2026-03-12 21:39:15 +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
|
|
@ -65,6 +65,11 @@ base_url = "https://example.com"
|
|||
bind = "0.0.0.0"
|
||||
bind_port = 8080
|
||||
|
||||
# IPs of trusted proxies (for X-Forwarded-For and X-Forwarded-Proto headers)
|
||||
# v4, v6, ranges and wildcards are supported
|
||||
# Your proxy must set these headers correctly for versia-server to work
|
||||
proxy_ips = []
|
||||
|
||||
# Bans IPv4 or IPv6 IPs (wildcards, networks and ranges are supported)
|
||||
banned_ips = []
|
||||
# Banned user agents, regex format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue