1
0
mirror of https://github.com/aziascreations/BakaShrot.git synced 2026-11-23 20:58:46 +01:00

Made bakashrot-cert write a certificate and its key both or neither, Refused a clock before 1970 at start, Noted the replication limits in the example config

- bakashrot-cert ca and issue write nothing when either file of the
  pair is there already, and remove the certificate again when its key
  can't be written.
- The server refuses to start with a clock before 1970 (pushed_at 0);
  set back that far while running isn't checked, noted in
  known-issues.md.
- The example config says to keep sync_interval under 5 min (idle links
  are closed) and what a replicated attachment can be resumed past
  (read back and hashed in 30 s). Both left as they are, why in
  known-issues.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 11:02:08 +01:00
parent 39ba7fce6c
commit 764bc3652a
7 changed files with 104 additions and 21 deletions
+6 -1
View File
@@ -25,6 +25,11 @@ database = "bakashrot.sqlite"
# second or so. ("off" isn't allowed.)
synchronous = "full"
# Replication cut partway through an attachment resumes once the peer has
# read back and hashed what it already has, in 30 s at most: up to about
# 4 GB received on a hard disk, 15 GB on a SATA SSD, 30-60 GB on NVMe
# (estimates). Past that, resuming fails at every retry: keep attachments
# well under it (more than a few GB is a lot for this anyway).
max_attachment_size = "1G" # bytes, or K M G T (1024-based); 0: none
retention_interval = "1m" # how often old messages are deleted
@@ -42,7 +47,7 @@ logs = "30d"
push_to = [] # dialed and sent to: ["10.0.0.2:7000", "server-2.lan:7000"]
accept_from = [] # taken from: ["10.0.0.2", "server-2.lan"], or ["*"]
retry_delay = "10s"
sync_interval = "5s"
sync_interval = "5s" # keep it under 5 min: a link idle that long is closed
batch_size = 1000 # messages per packet, 1-10000
# What certificates with a role may do. A certificate gets everything its