Stono / docker-nginx-letsencrypt

This is a docker container which automatically generates letsencrypt SSL certificates for you too.
Apache License 2.0
9 stars 6 forks source link

Is it possible to force a renewal check? #2

Open agittins opened 6 years ago

agittins commented 6 years ago

This has been working well for me for a while now, but I found that the certificates didn't renew in the last couple of weeks, so I just manually stopped/started the image and then it renewed the certs ok.

The readme hints that renewal only happens on startup, is this true? Is there a way to trigger a renewal without restarting the image?

For some other images I use a cron entry on the host to run a docker-exec command inside a desired container periodically. I can't see what single command I could run though, other than calling generate_letsencrypt.sh with each FQDN, or simply restarting the image.

Is there a recommended way? Is the image expected to just be restarted every week or so?

Stono commented 6 years ago

Hey @agittins Apologies for the ridiculously slow reply, I've been so busy and totally missed this.

Please see my comments on https://github.com/Stono/docker-nginx-letsencrypt/issues/3 which talk about taking LE generation outside of the container. I'd probably recommend a similar model for you.