add allowed-redirect config for upstream
This commit is contained in:
@ -11,8 +11,9 @@ type UpstreamMatch struct {
|
||||
}
|
||||
|
||||
type Upstream struct {
|
||||
Server string `yaml:"server"`
|
||||
Match UpstreamMatch `yaml:"match"`
|
||||
Server string `yaml:"server"`
|
||||
Match UpstreamMatch `yaml:"match"`
|
||||
AllowedRedirect *string `yaml:"allowed-redirect"`
|
||||
}
|
||||
|
||||
func (upstream Upstream) GetPath(orig string) (string, bool, error) {
|
||||
|
Reference in New Issue
Block a user