add ForceSSLRedirect ingress annotation

This commit is contained in:
Peter Wilson 2017-03-03 12:44:45 +11:00
parent 0b48d3b24d
commit 1a72b3f775
5 changed files with 72 additions and 34 deletions

View file

@ -59,6 +59,10 @@ type Backend struct {
// Enables or disables the redirect (301) to the HTTPS port
SSLRedirect bool `json:"ssl-redirect"`
// Enables or disables the redirect (301) to the HTTPS port even without TLS cert
// This is useful if doing SSL offloading outside of cluster eg AWS ELB
ForceSSLRedirect bool `json:"force-ssl-redirect"`
// Enables or disables the specification of port in redirects
// Default: false
UsePortInRedirects bool `json:"use-port-in-redirects"`