mirror of
https://github.com/project-zot/zot.git
synced 2026-06-18 05:28:07 +08:00
21654f64c1
- Add logging when certificate reload fails using log.Logger - Implement fsnotify for efficient file system monitoring instead of polling on every handshake - Add reloadMu to prevent concurrent reload operations and race conditions - Add time-based cache (1 second) for fallback polling to reduce file system calls - Watch certificate directories for better reliability with atomic file updates - Graceful fallback to periodic checking if fsnotify fails to initialize Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>