Allow multiple backends
This commit is contained in:
@@ -43,4 +43,6 @@ type Policy struct {
|
||||
Challenges map[string]Challenge `yaml:"challenges"`
|
||||
|
||||
Rules []Rule `yaml:"rules"`
|
||||
|
||||
Backends map[string]string `json:"backends"`
|
||||
}
|
||||
|
@@ -12,6 +12,7 @@ const (
|
||||
|
||||
type Rule struct {
|
||||
Name string `yaml:"name"`
|
||||
Host *string `yaml:"host"`
|
||||
Conditions []string `yaml:"conditions"`
|
||||
|
||||
Action string `yaml:"action"`
|
||||
|
Reference in New Issue
Block a user