路径规则、重写规则、URL跳转规则均支持匹配条件

This commit is contained in:
刘祥超
2021-06-09 21:43:58 +08:00
parent df4b79c4fe
commit 64c693b9e1
7 changed files with 208 additions and 152 deletions

View File

@@ -19,7 +19,7 @@ type HTTPLocationConfig struct {
ReverseProxy *ReverseProxyConfig `yaml:"reverseProxy" json:"reverseProxy"` // 反向代理设置
IsBreak bool `yaml:"isBreak" json:"isBreak"` // 终止向下解析
Children []*HTTPLocationConfig `yaml:"children" json:"children"` // 子规则
Conds *shared.HTTPRequestCondsConfig `yaml:"conds" json:"conds"` // 匹配条件 TODO
Conds *shared.HTTPRequestCondsConfig `yaml:"conds" json:"conds"` // 匹配条件
patternType HTTPLocationPatternType // 规则类型LocationPattern*
prefix string // 前缀