实现回源跟随功能

This commit is contained in:
GoEdgeLab
2022-03-14 15:07:33 +08:00
parent 760c8e6c0f
commit da67023adf
3 changed files with 57 additions and 45 deletions

View File

@@ -41,7 +41,8 @@ type ReverseProxyConfig struct {
AutoFlush bool `yaml:"autoFlush" json:"autoFlush"` // 是否自动刷新缓冲区在比如SSEserver-sent events场景下很有用
ProxyProtocol *ProxyProtocolConfig `yaml:"proxyProtocol" json:"proxyProtocol"`
ProxyProtocol *ProxyProtocolConfig `yaml:"proxyProtocol" json:"proxyProtocol"` // PROXY Protocol
FollowRedirects bool `yaml:"followRedirects" json:"followRedirects"` // 回源跟随
requestHostHasVariables bool
requestURIHasVariables bool