mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-25 17:58:42 +00:00
4563c2c1b7
Fix #38519 When `ENABLE_ACME` renew fails during startup (e.g. CA unreachable), `ManageSync` currently aborts even if a still-valid certificate is on disk, so HTTPS never comes up. If `CacheManagedCertificate` finds a non-expired cert, log the manage error, continue with that cert, and kick `ManageAsync` for background retries. First-time install / expired-or-missing cert still fails closed. --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>