@@ -30,6 +30,8 @@ func Validate(o *options.Options) error {
3030 msgs = append(msgs, validateRedisSessionStore(o)...)
3131 msgs = append(msgs, prefixValues("injectRequestHeaders: ", validateHeaders(o.InjectRequestHeaders)...)...)
3232 msgs = append(msgs, prefixValues("injectResponseHeaders: ", validateHeaders(o.InjectResponseHeaders)...)...)
33+ msgs = parseSignatureKey(o, msgs)
34+ msgs = configureLogger(o.Logging, msgs)
3335
3436 if o.SSLInsecureSkipVerify {
3537 // InsecureSkipVerify is a configurable option we allow
@@ -175,6 +177,9 @@ func Validate(o *options.Options) error {
175177 var redirectURL *url.URL
176178 redirectURL, msgs = parseURL(o.RawRedirectURL, "redirect", msgs)
177179 o.SetRedirectURL(redirectURL)
180+ if o.RawRedirectURL == "" && !o.Cookie.Secure && !o.ReverseProxy {
181+ logger.Print("WARNING: no explicit redirect URL: redirects will default to insecure HTTP")
182+ }
178183
179184 msgs = append(msgs, validateUpstreams(o.UpstreamServers)...)
180185 msgs = parseProviderInfo(o, msgs)
@@ -191,9 +196,6 @@ func Validate(o *options.Options) error {
191196 }
192197 }
193198
194− msgs = parseSignatureKey(o, msgs)
195− msgs = configureLogger(o.Logging, msgs)
196−
197199 if o.ReverseProxy {
198200 parser, err := ip.GetRealClientIPParser(o.RealClientIPHeader)
199201 if err != nil {