Change the default priority on the router created by the redirect.

This commit is contained in:
Ludovic Fernandez 2020-03-30 14:50:05 +02:00 committed by GitHub
parent aa68cc2e63
commit a6b6e1d101
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@ package static
import (
"fmt"
"math"
"strings"
"github.com/containous/traefik/v2/pkg/types"
@ -70,7 +71,7 @@ type RedirectEntryPoint struct {
func (r *RedirectEntryPoint) SetDefaults() {
r.Scheme = "https"
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.