HTTPS and HTTP over the same port in haproxy
up vote 0 down vote favorite I have a server with a Rest API behind haproxy which listens to port 5000. The haproxy config configures port 5000 to accept HTTPS connections from the client and then forwards the message to the server. This works correctly and here is the config for that port: frontend service-front-1 bind 192.168.122.3:5000 ssl crt /etc/ssl/private/haproxy.pem ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS option httplog option forwardfor except 127.0.0.0/8 option http-server-close reqadd X-Forwarded-Proto: https mode http default_backend service-back backend service-back mode http balance leastconn stick store-request src stick-table type ip size 256k expire 30m option forwardfor option httplog option httpchk HEAD / HTTP/1.0rnUser-agent: osa-haproxy-healthcheck server controller00_container-442ea37a 172.29.237.76:5000 check port 5000 inter 12000 rise 1 fall 1 In the client side, I have...