docker-archive / dockercloud-haproxy

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

LetsEncrypt HaProxy Integration #190

Closed anton-dealmeida closed 6 years ago

anton-dealmeida commented 7 years ago

I have a suggestion,

I have been thinking, what about we add the ability for this container to generate LetsEncrypt certificates generically inside of this container and renew it on the go?

LetsEncrypt will be awesome inside of this container and being able to generate the SSL certs that HAProxy uses for a multi tenant and multi host environment would be incredible useful!

Any opinions?

tifayuki commented 7 years ago

@anton-dealmeida

I agree that this feature is useful and convenient to a lot of users, but I don't think will implement this directly in this repo. I think it is better to keep this project focusing on management of haproxy configuration, and make features like certificate management in somewhere else.

levino commented 7 years ago

I built this: https://github.com/Levino/letsencrypt-cert-service

Works quite okay for me. It could probably use the docker cloud api to overwrite the environment variables of the haproxy. Happy to review PRs.