docker-archive / dockercloud-haproxy

HAproxy image that autoreconfigures itself when used in Docker Cloud
https://cloud.docker.com/
651 stars 187 forks source link

Unnecessary redirect from https to https scheme in SSL termination mode #227

Closed olexam closed 6 years ago

olexam commented 6 years ago

Hi, I'm using docker cloud setup with recommended load balancing setup with HAProxy, but when I set up the balancer in SSL termination mode got unexpected behavior, the proxy responds 302 status with redirect to the https schema even if I requested https initially. That is not a problem until you send a POST request, that redirected back and lost the method. Am I miss something in documentation?

Initial request:

image

image

POST request: image

image

olexam commented 6 years ago

There is also https://hub.docker.com/r/interaction/letsencrypt/ image involved to enable manage SSL certs. Problem could be on it side, but it handles only 80 port

olexam commented 6 years ago

Sorry guys, seems problem was in letsencrypt companion, problem disappeared after disabling it. Please close the issue.