aboutsummaryrefslogtreecommitdiffstats
path: root/messages/relay.toml
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-25 16:00:12 -0700
committerAdam Soltys <[email protected]>2026-10-25 16:00:12 -0700
commit5f3985bfd2b7b96eea30a3253a755ab409276f00 (patch)
tree64adba99338cd92927c09d24f2ae6834e21b3d03 /messages/relay.toml
parent8ea5ae33f14ade28a0809a6dc267b44570c8e74f (diff)
downloadcoinosv3-server-5f3985bfd2b7b96eea30a3253a755ab409276f00.tar.gz
coinosv3-server-5f3985bfd2b7b96eea30a3253a755ab409276f00.zip
messages: messages.coinos.io, a Magnitude Relay for the app's private messages, inbox lists, calls and group chats; copies down from relay.coinos.io over NIP-77 (the strfry tunnel), never writes into it
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QjVvE4YAcK3AGwV7kZXeN4
Diffstat (limited to 'messages/relay.toml')
-rw-r--r--messages/relay.toml41
1 files changed, 41 insertions, 0 deletions
diff --git a/messages/relay.toml b/messages/relay.toml
new file mode 100644
index 0000000..5d17967
--- /dev/null
+++ b/messages/relay.toml
@@ -0,0 +1,41 @@
+# messages.coinos.io: the messaging relay behind coinos v3 (Magnitude Relay,
+# github.com/VectorPrivacy/magnitude-relay). Private messages (NIP-17 gift
+# wraps), DM inbox lists, calls, Concord and White Noise (Marmot) group chats.
+# Posts, profiles' feeds, wallet sync and NWC stay on relay.coinos.io (strfry).
+# Every key is documented by `magnitude-relay init`.
+
+[relay]
+bind = "127.0.0.1:8794"
+urls = ["wss://messages.coinos.io"]
+# behind the Cloudflare tunnel every connection comes from cloudflared
+real_ip_header = "CF-Connecting-IP"
+
+[info]
+name = "coinos messages"
+description = "The messaging relay for coinos: private messages, group chats and calls."
+contact = "https://coinos.io"
+
+[policy]
+# Vector's set (gift wraps, 10050 inbox lists, Concord, calls' ephemeral
+# wraps 21059, NIP-46) plus Marmot: key packages (443 legacy, 30443), their
+# relay list (10051), welcomes (444) and group messages (445)
+kinds = "vector"
+allow_kinds = [443, 444, 445, 10051, 30443]
+# a Marmot welcome for a big group runs past 200 KB (relay.coinos.io went to 1 MB for it)
+max_event_bytes = 1048576
+
+[limits]
+max_message_bytes = 1150000
+
+[store]
+data = "/data"
+
+# Down from relay.coinos.io (strfry on desk, through cs's standing ssh tunnel
+# to it, relay-standby-tunnel.service): what other clients deliver there per
+# the old inbox lists lands here too. Down only: this relay never writes into
+# strfry (its write policy rate-limits by IP).
+[[sync]]
+url = "ws://127.0.0.1:17777"
+direction = "down"
+filter = '{"kinds":[1059,10050,443,444,445,10051,30443,13302,13303,33301,33302]}'
+reconcile_seconds = 300