From a6b6e1d101e495ce2abd05c4bc70032efd2b8881 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Mon, 30 Mar 2020 14:50:05 +0200 Subject: [PATCH] Change the default priority on the router created by the redirect. --- pkg/config/static/entrypoints.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/config/static/entrypoints.go b/pkg/config/static/entrypoints.go index f8378ae2e..ab68db0ac 100644 --- a/pkg/config/static/entrypoints.go +++ b/pkg/config/static/entrypoints.go @@ -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.