Skip to content

Commit

Permalink
Change the default priority on the router created by the redirect.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Mar 30, 2020
1 parent aa68cc2 commit a6b6e1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/config/static/entrypoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package static

import (
"fmt"
"math"
"strings"

"github.com/containous/traefik/v2/pkg/types"
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit a6b6e1d

Please sign in to comment.