URL跳转增加匹配前缀和是否保留RequestURI选项

This commit is contained in:
GoEdgeLab
2021-04-07 11:20:57 +08:00
parent 925514ec67
commit b59d021652

View File

@@ -10,6 +10,9 @@ type HTTPHostRedirectConfig struct {
BeforeURL string `yaml:"beforeURL" json:"beforeURL"` // 跳转前的地址
AfterURL string `yaml:"afterURL" json:"afterURL"` // 跳转后的地址
MatchPrefix bool `yaml:"matchPrefix" json:"matchPrefix"` // 只匹配前缀部分
KeepRequestURI bool `yaml:"keepRequestURI" json:"keepRequestURI"` // 保留请求URI
realBeforeURL string
}