I have a php application running with nginx and its own ssl forcing https on its own. I want to load balance it with the haproxy image from docker cloud, but i cant found how to make it work with ssl enabled.
it log the following error:
INFO:haproxy:HAProxy(PID:188) has been terminated
2017-01-29T00:31:24.736499144Z [ALERT] 028/003124 (189) : parsing [/haproxy.cfg:41] : ‘bind :443’ : unable to load SSL private key from PEM file ‘/certs/cert0.pem’.
2017-01-29T00:31:24.736824887Z [ALERT] 028/003124 (189) : Error(s) found in configuration file : /haproxy.cfg
2017-01-29T00:31:24.736995409Z [ALERT] 028/003124 (189) : Proxy ‘default_port_443’: no SSL certificate specified for bind ‘:443’ at [/haproxy.cfg:41] (use ‘crt’).
2017-01-29T00:31:24.737013826Z [ALERT] 028/003124 (189) : Fatal errors found in configuration.
2017-01-29T00:31:28.480817451Z INFO:haproxy:=> Add task: haproxy 189 died , restart
2017-01-29T00:31:29.481975334Z INFO:haproxy:=> Executing task: haproxy 189 died , restart
I put the content of my pem file into the DEFAULT_SSL_CERT env variable of the app service and i have 3 containers of those (scaled).
Any help please, example will be real great.