Commit Graph

16 Commits

Author SHA1 Message Date
崔健壮
612e67e4cc fix(ssl): keep panel certificate in sync after auto-renew (#12858)
The auto-renew flow in obtainSSL returned early when OpenResty was not
installed or `nginx -s reload` failed, skipping reloadSystemSSL. The new
certificate was persisted to the DB and written into website Nginx
configs, but the panel's own server.crt / server.key on disk and the
in-memory constant.CertStore were left pointing at the old material.
Because the cert was now fresh, subsequent cron ticks did not retry the
renewal, so the panel kept serving the stale cert until a user manually
re-applied it from 面板设置 → SSL.

Two changes:

1. agent/app/service/website_ssl.go
   reloadSystemSSL is now called unconditionally after a successful
   renewal, regardless of whether OpenResty is present or nginx reload
   succeeded. The function already short-circuits for non-panel SSLs,
   so this is safe.

2. agent/app/service/website_ssl.go + agent/cron/job/ssl.go
   Add SyncSystemSSL, invoked at the start of every renew cron tick.
   It compares the panel's on-disk cert/key with the WebsiteSSL row
   referenced by the SSLID setting and rewrites the files + notifies
   core when they diverge. This recovers existing installs that are
   already in the "DB ahead of disk" state and self-heals any future
   drift introduced by transient failures.
   https://github.com/1Panel-dev/1Panel/issues/12472
2026-05-27 11:58:40 +08:00
CityFun
9e501ce02b feat: Modify the certificate auto-renewal logic. (#12430)
Refs https://github.com/1Panel-dev/1Panel/issues/12389
2026-04-07 09:54:38 +00:00
ssongliu
37932d7fb2 chore: Complete system security upgrade (#11961) 2026-02-26 10:01:47 +00:00
CityFun
36fdf05d2b feat: support apply ip Certificate (#11437) 2025-12-23 13:35:38 +08:00
ssongliu
5b5a649589 fix: resolve Google Drive token refresh failure (#9298)
Refs #9223
2025-06-26 07:37:22 +00:00
ssongliu
9822427de8 fix: Fix the issue of abnormal token refreshing on alipan (#8747) 2025-05-20 13:42:01 +08:00
zhengkunwang
fa8f90c493 fix(website): fix issue with change website type failed (#8126) 2025-03-12 11:16:38 +08:00
ssongliu
36c5e648e5 fix: Fix the monitoring data exception (#8028) 2025-02-27 17:51:09 +08:00
ssongliu
b80c55c59c feat: Add the display of details for backup accounts. (#7941) 2025-02-21 10:17:09 +08:00
ssongliu
78199a49ed feat: Add usage scope for backup accounts (#7716)
* feat: Add usage scope for backup accounts

* fix: 解决计划任务列表不显示备份账号的问题

* feat: 统一备份文件大小获取接口
2025-01-14 14:27:51 +08:00
ssongliu
a627aa9915 feat: merge from dev (#7366)
* feat: merge from dev

* feat: Merge mobile style code from the dev branch
2024-12-17 15:59:21 +08:00
zhengkunwang
e5660a0d91 feat: merge from dev (#7238) 2024-12-03 10:12:02 +08:00
zhengkunwang
14c4d3c862 feat(file): Optimize file download progress tracking (#7186) 2024-11-26 14:04:31 +00:00
zhengkunwang
5865a958fc feat: 同步远程应用增加日志 (#6209) 2024-08-22 10:48:55 +00:00
ssongliu
fecba858a5 feat: 备份账号增删改查操作同步到节点 (#6081) 2024-08-09 10:30:39 +00:00
ssongliu
8d28b7db94 pref: backend 重命名 agent 2024-07-23 14:48:37 +08:00