Make log and traffic retention configurable; limit DNS presets to Quad9
- Settings → Data retention: log file size, number of old log files, hourly and daily traffic history. Stored as log and stats in config.json, validated, and applied without a restart; lowering a limit deletes older log files and history after confirmation. - Traffic history is now pruned by time instead of by bucket count. - Server page DNS provider list offers only Quad9 and Custom. Claude-Session: https://claude.ai/code/session_01RAnLbyQZ5ZTA7KqwXP98nw
This commit is contained in:
@@ -11,8 +11,8 @@ manages peers (add, change, disable, remove) and records traffic per peer.
|
||||
`inet GHOSTWIRE` table.
|
||||
- **Live peer changes:** only peers that changed are touched, the same effect
|
||||
as `wg syncconf`, so connected peers stay connected.
|
||||
- **Logs:** written to `GHOSTWIRE.jsonl` and rotated at 10 MB, keeping 5 files.
|
||||
- **Traffic history:** kept in `stats.json`: hourly for 48 h, daily for 400 days.
|
||||
- **Logs:** written to `GHOSTWIRE.jsonl`, rotated at 10 MB with 5 old files kept by default (Settings → Data retention).
|
||||
- **Traffic history:** kept in `stats.json`: hourly for 48 h and daily for 400 days by default (Settings → Data retention).
|
||||
- **Client private keys are never stored.** A config is shown once, as a
|
||||
download or QR code. "Issue new config" makes new keys.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user