源站支持自定义回源主机名

This commit is contained in:
刘祥超
2022-03-17 15:48:16 +08:00
parent 024f30ec36
commit 573f1fe22f
5 changed files with 101 additions and 70 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ type OriginConfig struct {
StripPrefix string `yaml:"stripPrefix" json:"stripPrefix"` // 去除URL前缀
RequestURI string `yaml:"requestURI" json:"requestURI"` // 转发后的请求URI TODO
RequestHost string `yaml:"requestHost" json:"requestHost"` // 自定义主机名 TODO
RequestHost string `yaml:"requestHost" json:"requestHost"` // 自定义主机名
RequestHeaderPolicyRef *shared.HTTPHeaderPolicyRef `yaml:"requestHeaderPolicyRef" json:"requestHeaderPolicyRef"` // 请求Header
RequestHeaderPolicy *shared.HTTPHeaderPolicy `yaml:"requestHeaderPolicy" json:"requestHeaderPolicy"` // 请求Header策略