[GH-ISSUE #343] Add a setting for renewal interval #5968

Closed
opened 2026-03-01 17:08:24 +03:00 by kerem · 1 comment
Owner

Originally created by @mattiapv on GitHub (Apr 1, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/343

Hello, is there a specific reason for setting the default renew interval to 7 days?

github.com/0xJacky/nginx-ui@4289d55562/internal/cert/auto_cert.go (L63)

Since a certificate is valid for 90 days, I would prefer to have a setting to increase the renew interval. For example:

[server]
RenewalInterval = 60
if time.Now().Sub(cert.NotBefore).Hours()/24 < settings.ServerSettings.RenewalInterval {

Thank you

Originally created by @mattiapv on GitHub (Apr 1, 2024). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/343 Hello, is there a specific reason for setting the default renew interval to 7 days? https://github.com/0xJacky/nginx-ui/blob/4289d555629524b62d9da3d1b3b638727e19ab13/internal/cert/auto_cert.go#L63 Since a certificate is valid for 90 days, I would prefer to have a setting to increase the renew interval. For example: ```ini [server] RenewalInterval = 60 ``` ```go if time.Now().Sub(cert.NotBefore).Hours()/24 < settings.ServerSettings.RenewalInterval { ``` Thank you
kerem 2026-03-01 17:08:24 +03:00
Author
Owner

@Condorello commented on GitHub (Jun 23, 2024):

Hi, seems that the GUI is limited to 21 days max, could be elevated at 60 days as suggest by lets encrypt?

<!-- gh-comment-id:2185183433 --> @Condorello commented on GitHub (Jun 23, 2024): Hi, seems that the GUI is limited to 21 days max, could be elevated at 60 days as suggest by lets encrypt?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#5968
No description provided.