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

Moved the PureBasic version to OldSource/, Started the Rust rewrite in Source/

The rewrite's plan and decisions are in revamp.md. Steps 0 to 10 are done:
the workspace and checks, bakashrot-proto, bakashrot-pki and
bakashrot-cert, bakashrot-config, bakashrot-storage (schema v9), the
server and the client library (every request but replication's,
attachments and retention included), the C DLL with its C, PureBasic and
Python bindings, and the bakashrot tool. Step 11 (replication) is next.

OldSource/ is the old implementation, kept building and passing as the
reference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RwFeVTGs2SsufaH6zquzcb
This commit is contained in:
2026-11-14 12:47:40 +01:00
parent d0048b17c8
commit e044fcf359
225 changed files with 21849 additions and 123 deletions
+60
View File
@@ -0,0 +1,60 @@
; ============================================================================
; BakaShrot server config, for docker-compose.yml: empty, fill it in.
;
; Every option is documented in Server/Config/schema.ini (config.example.ini
; in a release). Keys: BakaShrotGenerateKeyPairs.exe. Never commit a filled
; in copy, it holds the server's private key.
; ============================================================================
[BakaShrot]
; This server's private key. Its public key, which clients need as
; ServerPublicKey, is in the log when it starts (docker compose logs).
PrivateKey =
; The node this server authenticates as when it links to peers.
Node =
[BakaShrot.Topics]
; One topic name per line.
; logs
[BakaShrot.Retention]
; topic = age (30d, 12h...), or nothing to keep everything forever.
; logs = 30d
[BakaShrot.Server]
; Empty: every interface (127.0.0.1 can't be reached from outside the
; container). The port must match docker-compose.yml's.
Host =
Port = 12345
ReplicatingTopics =
NetThreadPoolSize = 4
; In the bakashrot-data volume.
DatabasePath = /var/lib/bakashrot/server.sqlite
MaxAttachmentSize = 1G
Synchronous = FULL
; One section per peer, see schema.ini.
; [BakaShrot.Peer.other]
; Host =
; Port =
; Node =
; PublicKey =
; One section per client allowed to connect.
[BakaShrot.Client.example]
; The client's public key (client.ini's PublicKey).
PublicKeys =
; The node it writes as (client.ini's Node must say the same).
Node =
; DefaultTopic = logs
; PushTopics = logs
; ReadTopics = *
AllowRead = 1
AllowWrite = 1
AllowQuery = 0