mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 01:32:25 -05:00
add trusted proxy for parsing client IPs (#115)
This commit is contained in:
parent
651f12cdfb
commit
e2757ae676
7 changed files with 339 additions and 13 deletions
|
|
@ -64,6 +64,14 @@ protocol: "https"
|
|||
# Default: 8080
|
||||
port: 8080
|
||||
|
||||
# Array of string. CIDRs or IP addresses of proxies that should be trusted when determining real client IP from behind a reverse proxy.
|
||||
# If you're running inside a Docker container behind Traefik or Nginx, for example, add the subnet of your docker network,
|
||||
# or the gateway of the docker network, and/or the address of the reverse proxy (if it's not running on the host network).
|
||||
# Example: ["127.0.0.1/32", "172.20.0.1"]
|
||||
# Default: ["127.0.0.1/32"] (localhost)
|
||||
trustedProxies:
|
||||
- "127.0.0.1/32"
|
||||
|
||||
############################
|
||||
##### DATABASE CONFIG ######
|
||||
############################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue