mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-29 18:27:58 +08:00
fix: update gateway default X-forwarded-For (#1950)
Signed-off-by: Alone88 <anhaoyl@qq.com>
This commit is contained in:
parent
8a3186c9b5
commit
2603c0f4c0
@ -105,7 +105,7 @@ func NewDefault() Configuration {
|
|||||||
ProxySetHeaders: map[string]string{
|
ProxySetHeaders: map[string]string{
|
||||||
"Host": "$best_http_host",
|
"Host": "$best_http_host",
|
||||||
"X-Real-IP": "$remote_addr",
|
"X-Real-IP": "$remote_addr",
|
||||||
"X-Forwarded-For": "$remote_addr",
|
"X-Forwarded-For": "$proxy_add_x_forwarded_for",
|
||||||
"X-Forwarded-Host": "$best_http_host",
|
"X-Forwarded-Host": "$best_http_host",
|
||||||
"X-Forwarded-Port": "$pass_port",
|
"X-Forwarded-Port": "$pass_port",
|
||||||
"X-Forwarded-Proto": "$pass_access_scheme",
|
"X-Forwarded-Proto": "$pass_access_scheme",
|
||||||
|
Loading…
Reference in New Issue
Block a user