Renew with nginx reload through crontab #1877
Replies: 1 comment 2 replies
-
I believe I do precisely this, but I have I'd also recommend running Lego under the user the certificates are meant for, which would be the Nginx user in this case. This minimizes the attack surface of your certificates (since Nginx needs to read them anyway), and allows the application in question to be reloaded without running as a superuser or something similarly stupid. You should also make sure the exact renewal time is randomized to avoid undue load on the certificate authority. Some versions of Cron support this directly: if yours doesn't, use |
Beta Was this translation helpful? Give feedback.
-
Hi!
I'm running cronjob for renewing certificate:
The certificate is renewed but nginx won't reload. Manually reloading works.
What could be the reason?
Beta Was this translation helpful? Give feedback.
All reactions