Fix the redirect entrypoint default priority

This commit is contained in:
Jean-Baptiste Doumenjou 2021-02-02 17:42:04 +01:00 committed by GitHub
parent 3c5e6fe7f8
commit 447c3567b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ type RedirectEntryPoint struct {
func (r *RedirectEntryPoint) SetDefaults() {
r.Scheme = "https"
r.Permanent = true
r.Priority = math.MaxInt32
r.Priority = math.MaxInt32 - 1
}
// TLSConfig is the default TLS configuration for all the routers associated to the concerned entry point.