@@ -30,6 +30,8 @@ func Validate(o *options.Options) error {
30 msgs = append(msgs, validateRedisSessionStore(o)...)
30 msgs = append(msgs, validateRedisSessionStore(o)...)
31 msgs = append(msgs, prefixValues("injectRequestHeaders: ", validateHeaders(o.InjectRequestHeaders)...)...)
31 msgs = append(msgs, prefixValues("injectRequestHeaders: ", validateHeaders(o.InjectRequestHeaders)...)...)
32 msgs = append(msgs, prefixValues("injectResponseHeaders: ", validateHeaders(o.InjectResponseHeaders)...)...)
32 msgs = append(msgs, prefixValues("injectResponseHeaders: ", validateHeaders(o.InjectResponseHeaders)...)...)
33+ msgs = parseSignatureKey(o, msgs)
34+ msgs = configureLogger(o.Logging, msgs)
34 if o.SSLInsecureSkipVerify {
36 if o.SSLInsecureSkipVerify {
35 // InsecureSkipVerify is a configurable option we allow
37 // InsecureSkipVerify is a configurable option we allow
@@ -175,6 +177,9 @@ func Validate(o *options.Options) error {
175 var redirectURL *url.URL
177 var redirectURL *url.URL
176 redirectURL, msgs = parseURL(o.RawRedirectURL, "redirect", msgs)
178 redirectURL, msgs = parseURL(o.RawRedirectURL, "redirect", msgs)
177 o.SetRedirectURL(redirectURL)
179 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")
179 msgs = append(msgs, validateUpstreams(o.UpstreamServers)...)
184 msgs = append(msgs, validateUpstreams(o.UpstreamServers)...)
180 msgs = parseProviderInfo(o, msgs)
185 msgs = parseProviderInfo(o, msgs)
@@ -191,9 +196,6 @@ func Validate(o *options.Options) error {
194− msgs = parseSignatureKey(o, msgs)
195− msgs = configureLogger(o.Logging, msgs)
197 if o.ReverseProxy {
199 if o.ReverseProxy {
198 parser, err := ip.GetRealClientIPParser(o.RealClientIPHeader)
200 parser, err := ip.GetRealClientIPParser(o.RealClientIPHeader)
199 if err != nil {
201 if err != nil {