可以配置是否在反向代理中添加X-Real-IP和X-Forwarded-*

This commit is contained in:
刘祥超
2021-01-26 20:29:29 +08:00
parent 2f21effdbf
commit 875162cfb6
3 changed files with 93 additions and 45 deletions

View File

@@ -86,6 +86,7 @@ func (this *SettingAction) RunPost(params struct {
RequestURI: reverseProxyConfig.RequestURI,
StripPrefix: reverseProxyConfig.StripPrefix,
AutoFlush: reverseProxyConfig.AutoFlush,
AddHeaders: reverseProxyConfig.AddHeaders,
})
this.Success()