byjg / docker-easy-haproxy

Discover services and create dynamically the haproxy.cfg based on the labels defined in docker containers or from a simple static Yaml
MIT License
55 stars 12 forks source link

Add ability to override the letsencrypt server #32

Closed josegonzalez closed 1 year ago

josegonzalez commented 1 year ago

Atm it seems like it always uses the productions server. Would be nice to be able to set it to the staging server for testing.

byjg commented 1 year ago

I added some functionality but didn't test properly yet.

josegonzalez commented 1 year ago

Rather than setting EASYHAPROXY_LETSENCRYPT_STAGING=true, why not allow a user to specify the server scheme://hostname.tld?

byjg commented 1 year ago

It is interesting.

So, changing the approach a little:

EASYHAPROXY_LETSENCRYPT_TESTSERVER=true

or

EASYHAPROXY_LETSENCRYPT_TESTSERVER=scheme://hostname.tld