mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #321] 签发证书时能否增加DNS记录的检测时间? #177
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#177
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jearton on GitHub (Feb 28, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/321
签发证书的成功率有点低,50%都不到,全都是因为DNS记录检测超时导致的。我用的阿里云DNS凭证
@0xJacky commented on GitHub (Feb 28, 2024):
可以试下配置一下环境变量
@0xJacky commented on GitHub (Feb 28, 2024):
对应 UI 里的几个值,我看 lego 的代码是会读取这个 env 的,这个我没法控制,实在不行建议给宿主机换个 DNS。我 CF 还没遇到失败的.
@jearton commented on GitHub (Feb 28, 2024):
可以,有配置能自己控制时间就行
@jearton commented on GitHub (Feb 28, 2024):
@0xJacky 顺便请教一下,这个证书多久会自动续期?
@0xJacky commented on GitHub (Feb 28, 2024):
目前是每7天重签,不过看起来在证书多的情况下会有问题 #319
@jearton commented on GitHub (Feb 28, 2024):
感觉有点频繁了,毕竟有3个月有效期呢,在过期前几天签就足够了吧。acme.sh 这个项目里是每2个月自动续签,而且续签万一失败,最好能发个机器人消息通知出来,通知到飞书,钉钉,slack这类办公软件里,不然感知不到
@0xJacky commented on GitHub (Feb 28, 2024):
目前,如果还剩半个月没能正常续签 let's encrypted 会给你发邮件的
@sofusskovgaard commented on GitHub (Feb 28, 2024):
@0xJacky as I mentioned in #319, you're never actually renewing the same certificate. Meaning the original certificate will run out every time and the user will receive an email every time no matter what. This also means you could receive up to 52 ish emails a year about certificates.
I agree with @jearton. Start trying to renew the certificate when it has 30 days left to live. If it fails the user should be notified by nginx-ui about the failing renewal. Retry for
ndays, if it fails or succeeds notify the user so they're informed and have a long time to take action.I hope Google Translate didn't butcher your comments 🙏