5 Commits

Author SHA1 Message Date
cnbugs a9842e9212 v0.01: 修复死锁Bug + DNS-01默认 + 超时调整 2026-05-13 10:58:29 +08:00
cnbugs 3fa77d9bc0 refactor: replace SQLite/GORM with JSON file storage
- Remove GORM and SQLite, use simple JSON file (data/certs.json) for persistence
- CertStore with sync.RWMutex for thread-safe in-memory cache
- All handlers updated to use config.Store instead of config.DB
- Cron job and stats updated accordingly
- go mod tidy removes unused gorm/sqlite dependencies
2026-05-12 15:27:10 +08:00
cnbugs d0e738e1ef fix: use SQLite upsert to eliminate race condition on domain uniqueness constraint
Previously the CreateCertificate handler checked domain existence and then
inserted separately, creating a race window where concurrent requests could
both pass the check and trigger 'UNIQUE constraint failed' on INSERT.

Now uses SQLite's native INSERT ... ON CONFLICT (upsert) which atomically
handles the uniqueness constraint at the database level, eliminating the
race condition entirely.
2026-05-12 15:22:30 +08:00
cnbugs 0703dffb90 fix: 处理域名重复申请问题,支持重试失败/过期的证书 2026-05-12 15:01:07 +08:00
cnbugs 1775d4b4fc feat: AutoSSL certificate management tool with Web UI 2026-05-12 14:55:10 +08:00