auto-ssl / auto-ssl/lua-resty-auto-ssl

Cannot change the renewal interval

Open
#290 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
2k
Forks
184
PR merge metrics
No merged PRs in 30d

Description

In our company we have a requirement to renew certificates 40 days before they expire. Currently this cannot be configured in resty-auto-ssl. There should be an option to configure this.
As a workaround I had to do two things
- Change the following line in renewal.lua by replacing the 30 with 40 ` if now + (30 * 24 * 60 * 60) < cert["expiry"] then`
- Set RENEW_DAYS="40", because otherwise dehydrated will do nothing

It would be great if we had an option to configure the number of days. The same value could/should be used for the lua code and the dehydrated parameter.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the renewal.lua condition shown in the issue and trace how resty-auto-ssl passes configuration to dehydrated, including the RENEW_DAYS setting. Done means the renewal interval is configurable and the same configured value governs both the Lua check and dehydrated behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, nginx
Domain
devops, security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.