反向代理源站实现使用域名分组

This commit is contained in:
刘祥超
2021-09-20 11:54:21 +08:00
parent bf57bc5a1c
commit 1f6be53d3d
18 changed files with 431 additions and 186 deletions

View File

@@ -28,6 +28,8 @@ type OriginConfig struct {
MaxConns int `yaml:"maxConns" json:"maxConns"` // 最大并发连接数
MaxIdleConns int `yaml:"idleConns" json:"idleConns"` // 最大空闲连接数
Domains []string `yaml:"domains" json:"domains"` // 所属域名
StripPrefix string `yaml:"stripPrefix" json:"stripPrefix"` // 去除URL前缀
RequestURI string `yaml:"requestURI" json:"requestURI"` // 转发后的请求URI TODO
RequestHost string `yaml:"requestHost" json:"requestHost"` // 自定义主机名 TODO