Port Brave Sync server to Rust

Use SQLite for persistence and generate Rust protobuf bindings at build time.

Add Docker image support for containerized deployment.

Co-Authored-By: codex <[email protected]>
This commit is contained in:
janisslsmandcodex committed 2026-06-04 23:57:44 +03:00
commit 28826af88d
93 files changed
+11666

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -eu
data_dir="${SQLITE_PATH%/*}"
if [ "$data_dir" = "$SQLITE_PATH" ]; then
data_dir="/var/lib/brave-sync"
fi
mkdir -p "$data_dir"
chown -R brave-sync:brave-sync "$data_dir"
exec gosu brave-sync "$@"