Externalize Træfik rules in a dedicated package
This commit is contained in:
parent
0306b5e8f7
commit
6f81e3479a
5 changed files with 80 additions and 75 deletions
|
@ -13,6 +13,7 @@ import (
|
|||
|
||||
"github.com/abronan/valkeyrie/store"
|
||||
"github.com/containous/flaeg"
|
||||
"github.com/containous/mux"
|
||||
"github.com/containous/traefik/log"
|
||||
traefikTls "github.com/containous/traefik/tls"
|
||||
"github.com/ryanuber/go-glob"
|
||||
|
@ -78,6 +79,16 @@ type Route struct {
|
|||
Rule string `json:"rule,omitempty"`
|
||||
}
|
||||
|
||||
// ServerRoute holds ServerRoute configuration.
|
||||
type ServerRoute struct {
|
||||
Route *mux.Route
|
||||
StripPrefixes []string
|
||||
StripPrefixesRegex []string
|
||||
AddPrefix string
|
||||
ReplacePath string
|
||||
ReplacePathRegex string
|
||||
}
|
||||
|
||||
//ErrorPage holds custom error page configuration
|
||||
type ErrorPage struct {
|
||||
Status []string `json:"status,omitempty"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue