Add configuration for trusted proxies (#141)

This commit is contained in:
Daniel Barton
2022-10-05 08:11:07 +08:00
committed by GitHub
parent b20bf6deab
commit e98d249cf7
5 changed files with 10 additions and 4 deletions

View File

@@ -91,6 +91,9 @@ type ApiConfiguration struct {
// The maximum size for files uploaded through the Panel in MB.
UploadLimit int64 `default:"100" json:"upload_limit" yaml:"upload_limit"`
// A list of IP address of proxies that may send a X-Forwarded-For header to set the true clients IP
TrustedProxies []string `json:"trusted_proxies" yaml:"trusted_proxies"`
}
// RemoteQueryConfiguration defines the configuration settings for remote requests