processone / docker-ejabberd

Set of ejabberd Docker images
94 stars 77 forks source link

When will the Lets-Encrypt certificate be renewed? #67

Closed omexlu closed 3 years ago

omexlu commented 3 years ago

Hello,

How many days before expiry are the Lets-Encrypt cerificates automatically renewed in the Docker version?

Thanks in advance.

badlop commented 3 years ago

What certificates do you mean? ecs/conf/server.pem expires in 2045

omexlu commented 3 years ago

The usual letsencrypt certs for every domain added :) ejabberd dockerized has its own renew process and i would know how many days before expiration this gets renewed.

badlop commented 3 years ago

ejabberd dockerized has its own renew process

Where is that process located exactly?

omexlu commented 3 years ago

There is nothing implemented that renews the letsencrypt certs on the docker version, therefore something like a cronjob needs to be implemented like here:

https://github.com/mailcow/mailcow-dockerized/commit/971434ddd354a87208cbee87d399fc66be3e94ff#diff-e45e45baeda1c1e73482975a664062aa56f20c03dd9d64a827aba57775bed0d3R577

badlop commented 3 years ago

So, you have answered your initial question, right?

omexlu commented 3 years ago

Yes, another description to make this manually: https://community.mailcow.email/d/826-run-command-in-ejabberd-container/2

But can do within a cronjob to do it automatically :)

closed