nginx / njs-acme

Nginx NJS module runtime to work with ACME providers like Let's Encrypt for automated no-reload TLS certificate issue/renewal.
Apache License 2.0
57 stars 9 forks source link

feat: use the js_periodic directive to check/issue/renew certs #38

Closed zsteinkamp closed 5 months ago

zsteinkamp commented 1 year ago

Uses the new directive js_periodic in njs >= 0.8.2 to invoke clientAutoMode(r) on regular intervals. This eliminates the need to set up a cron or use docker healthchecks.

Proposed changes

Checklist

Before creating a PR, run through this checklist and mark each as complete.

ivanitskiy commented 1 year ago

Please ensure integration tests are updated and tests both triggers "periodic" and regular HTTP request. it would require updating nginx config in integration tests