n1b0r / docker-flow-proxy-letsencrypt

39 stars 16 forks source link

Fix #30. Only symlink .pem certificate #31

Closed Galbar closed 6 years ago

Galbar commented 6 years ago

docker-flow-proxy would fail to load certificates because non .pem certificates were in the folder.

This change should fix this

n1b0r commented 6 years ago

Hello, could you explain me why this is needed ? What is the problem generating symlinks for other files ?

Galbar commented 6 years ago

Hi @n1b0r, docker-flow-proxy outputs an error like: parsing [/cfg/haproxy.cfg:47] : 'bind *:443' : 'crt-list' : error processing line 2 in file '/cfg/crt-list.txt' : unable to load SSL certificate from PEM file '/certs/mydomain.com.key'. When other certificates are symlinked.

It happened to me and this change fixed it, also see #30 where @Olvikolvi reports having the same issue.

n1b0r commented 6 years ago

thanks for the pull request !