Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

HTTPS automatic redirect #784

Closed
nottix opened this issue Apr 15, 2016 · 10 comments
Closed

HTTPS automatic redirect #784

nottix opened this issue Apr 15, 2016 · 10 comments

Comments

@nottix
Copy link

nottix commented Apr 15, 2016

Hi,

i'm using the new TLS feature on 2 of our domains, is it possibile to disable automatic redirect from HTTP to HTTPS?

Thank you.

@CeccoCQ
Copy link

CeccoCQ commented Apr 15, 2016

+1

1 similar comment
@85simo
Copy link

85simo commented Apr 15, 2016

+1

@bprashanth
Copy link

Yes, how are you using it? (nginx or GCE controller, and what does your Ingress look like?). HTTPS should be the default but there should be an opt-out.

@bprashanth
Copy link

Is this the same as #782 ?

@nottix
Copy link
Author

nottix commented Apr 16, 2016

No it isn't the same.
I configured nginx controller with ingress TLS rules. But now every request i make to http://domain is redirected to https://domain. Can i disable automatic redirection without editing default nginx.tmpl provided with 0.5 version?

Thank you.

@bprashanth
Copy link

There are 3 modes for https:

  1. both https and http
  2. redirect http to https
  3. block http

The third is the least important, I think we shold allow at least 1, 2 through an annotation. @aledbf thoughts?

@aledbf
Copy link
Contributor

aledbf commented Apr 16, 2016

@bprashanth the default behavior in the nginx controller is 2. In #766 is possible to use hsts=false to disable the redirect. The third mode is included when hsts=true (default)

@sekka1
Copy link

sekka1 commented May 2, 2016

Is this fixed with a new container built with it?

I am using gcr.io/google_containers/nginx-ingress-controller:0.6 and this does not work.

@aledbf
Copy link
Contributor

aledbf commented May 5, 2016

@sekka1 please check with the last version gcr.io/google_containers/nginx-ingress-controller:0.61

@bprashanth
Copy link

assuming this is fixed in 0.61

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants