From 08b9db2f96d929b0697397a0a5b906c4e920ca00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 20 Feb 2022 09:17:38 +0800 Subject: [PATCH] =?UTF-8?q?URL=E8=B7=B3=E8=BD=AC=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=98=AF=E5=90=A6=E4=BF=9D=E7=95=99=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/http_host_redirect_config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/serverconfigs/http_host_redirect_config.go b/pkg/serverconfigs/http_host_redirect_config.go index a1f2e73..a6fa8b5 100644 --- a/pkg/serverconfigs/http_host_redirect_config.go +++ b/pkg/serverconfigs/http_host_redirect_config.go @@ -11,12 +11,15 @@ type HTTPHostRedirectConfig struct { IsOn bool `yaml:"isOn" json:"isOn"` // 是否开启 Status int `yaml:"status" json:"status"` // 跳转用的状态码 + Mode string `yaml:"mode" json:"mode"` // 模式 + BeforeURL string `yaml:"beforeURL" json:"beforeURL"` // 跳转前的地址 AfterURL string `yaml:"afterURL" json:"afterURL"` // 跳转后的地址 MatchPrefix bool `yaml:"matchPrefix" json:"matchPrefix"` // 只匹配前缀部分 MatchRegexp bool `yaml:"matchRegexp" json:"matchRegexp"` // 匹配正则表达式 KeepRequestURI bool `yaml:"keepRequestURI" json:"keepRequestURI"` // 保留请求URI + KeepArgs bool `yaml:"keepArgs" json:"keepArgs"` // 保留参数 Conds *shared.HTTPRequestCondsConfig `yaml:"conds" json:"conds"` // 匹配条件 realBeforeURL string