Change the default priority on the router created by the redirect.
This commit is contained in:
parent
aa68cc2e63
commit
a6b6e1d101
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ package static
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"math"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/containous/traefik/v2/pkg/types"
|
"github.com/containous/traefik/v2/pkg/types"
|
||||||
|
@ -70,7 +71,7 @@ type RedirectEntryPoint struct {
|
||||||
func (r *RedirectEntryPoint) SetDefaults() {
|
func (r *RedirectEntryPoint) SetDefaults() {
|
||||||
r.Scheme = "https"
|
r.Scheme = "https"
|
||||||
r.Permanent = true
|
r.Permanent = true
|
||||||
r.Priority = 1
|
r.Priority = math.MaxInt32
|
||||||
}
|
}
|
||||||
|
|
||||||
// TLSConfig is the default TLS configuration for all the routers associated to the concerned entry point.
|
// TLSConfig is the default TLS configuration for all the routers associated to the concerned entry point.
|
||||||
|
|
Loading…
Add table
Reference in a new issue