Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https - route transparently, do not terminate ssl? #63

Closed
Boran opened this issue Dec 8, 2014 · 2 comments
Closed

https - route transparently, do not terminate ssl? #63

Boran opened this issue Dec 8, 2014 · 2 comments

Comments

@Boran
Copy link

Boran commented Dec 8, 2014

Hi,

I have a apache website container...
Would it be possible to forward port 443/ssl in the same way as 80, but allow the target container to terminate SSL, i.e. certificates and so would be installed in the container?

Or that a limitation in reverse https proxing?

Also it would be nice if requests on port 80 were forwarded to port 80, not automatically forwarded to 443. Otherwise one have pages with mixed htt/s which causes browsers issues.
As maybe not all pages need https (performance)

@jwilder
Copy link
Collaborator

jwilder commented Dec 8, 2014

To forward SSL traffic and terminate it on your backend container, nginx would need to proxy TCP sockets which I don't think the stock nginx package supports out of the box. I believe there are some plugins that might do that if they are compiled in but it might be easier to just use haproxy in that case.

It is possible to have host port 80 forward to the container port 80 and not redirect but I think it would be better to run a custom template in that case. There are some good online resources for TLS performance as well if you're interested. I'd recommend taking a look at https://istlsfastyet.com/.

@Boran
Copy link
Author

Boran commented Dec 10, 2014

I suspected as much.
I'll start experimenting with a custom template.
That site is interesting, hadn't come across it before thanks!

@Boran Boran closed this as completed Dec 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants