Skip to content

Commit bd1ec7a

Browse files
feat(federation): add RustyWeb commons sync
1 parent 07c16bd commit bd1ec7a

38 files changed

Lines changed: 9205 additions & 105 deletions

.env.example

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616

1717
# Comma-separated list of <secret>=<scope>|<scope>|... entries.
1818
# Generate the secret with: openssl rand -hex 32
19-
# Scopes: graph:read, graph:write, context:read, admin:read, *
19+
# Scopes: graph:read, graph:write, context:read, admin:read,
20+
# federation:write, *
2021
# REQUIRED when RUSTY_RED_REQUIRE_AUTH=true (the default).
2122
RUSTY_RED_API_TOKENS=
2223

23-
# Refuse unauthenticated requests on /v1/* and /mcp. Keep true on any
24-
# endpoint reachable from outside a trusted network.
24+
# Refuse unauthenticated requests on search, crawl, federation, /v1/*,
25+
# /mcp, and metrics. Keep true on any endpoint reachable from outside a
26+
# trusted network.
2527
RUSTY_RED_REQUIRE_AUTH=true
2628

2729
# Path to the persistent volume mount. Must match the volume's mount
@@ -50,6 +52,34 @@ RUSTY_RED_HOST=[::]
5052
# Public base URL; appears in the OpenAPI servers block.
5153
# RUSTY_RED_PUBLIC_URL=
5254

55+
# ============================================================
56+
# RustyWeb Web Commons federation
57+
# ============================================================
58+
59+
# Enabled by default. Default crawls are federable unless request scope
60+
# opts out; outbound submission happens only when hub URL + private key
61+
# are set.
62+
RUSTY_RED_FEDERATE=true
63+
64+
# Hub base URL or full /federate/submit URL.
65+
# RUSTY_RED_FEDERATE_HUB_URL=
66+
67+
# Bearer token for the hub. Token needs federation:write on the hub.
68+
# RUSTY_RED_FEDERATE_TOKEN=
69+
70+
# 32-byte Ed25519 private key as hex. Required to submit signed fragments.
71+
# RUSTY_RED_FEDERATE_PRIVATE_KEY=
72+
73+
# Optional Ed25519 public key hex. If set, it must match the private key.
74+
# RUSTY_RED_FEDERATE_PEER_ID=
75+
76+
# Include seeds, budget, and actor id in submitted fragments. Off by
77+
# default so content+links can federate without seed-selection provenance.
78+
RUSTY_RED_FEDERATE_PROVENANCE=false
79+
80+
# Bounded text prefix per federated content snapshot.
81+
RUSTY_RED_FEDERATE_SNAPSHOT_TEXT_BYTES=4096
82+
5383
# ============================================================
5484
# Storage mode and durability
5585
# ============================================================

0 commit comments

Comments
 (0)