Repository navigation
Expand file tree
/
Copy pathconfig.example.toml
More file actions
72 lines (65 loc) · 2.75 KB
/
Copy pathconfig.example.toml
File metadata and controls
72 lines (65 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# armada-matrix-bridge configuration. Copy to config.toml and edit.
[homeserver]
# How the bridge reaches your homeserver's client-server API.
url = "https://matrix.example.com"
server_name = "example.com"
[appservice]
# How the homeserver reaches the bridge.
url = "http://127.0.0.1:8789"
bind = "127.0.0.1:8789"
# id = "armada"
# bot_localpart = "armadabot"
# bot_displayname = "Armada bridge"
# bot_avatar = "mxc://example.com/abc"
# Armada members appear as @<ghost_prefix><npub>:server.
# ghost_prefix = "armada_"
# Written by `armada-matrix-bridge generate-registration`; relative to this file.
# registration = "registration.yaml"
[database]
url = "postgres://armada:password@127.0.0.1/armada_matrix_bridge"
# max_connections = 10
[bridge]
# 64 hex characters (`openssl rand -hex 32`). Every Matrix user's Armada key and
# the key sealing community secrets at rest derive from it. Back it up: losing
# it loses those identities and the stored community keys.
master_secret = "REPLACE-ME"
# The bridge's own Armada identity (nsec or hex). Derived from master_secret
# when unset; `armada-matrix-bridge whoami` prints it.
# nostr_key = "nsec1..."
# Relays for profiles and the bot's inbox (Direct Invites). Community traffic
# always uses each community's own relays.
# relays = ["wss://relay.ditto.pub", "wss://relay.primal.net", "wss://relay.damus.io"]
# Where Matrix users' attachments and avatars are uploaded for Armada.
# blossom_servers = ["https://blossom.ditto.pub", "https://blossom.primal.net"]
# command_prefix = "!armada"
# puppet_name_suffix = " (Matrix)"
# ghost_name_suffix = " (Armada)"
# max_media_bytes = 52428800
# Messages copied into a newly bridged channel.
# backfill_messages = 50
# Where `armada-matrix-bridge list|status|invite|unbridge` reach the running
# bridge; relative to this file.
# control_socket = "control.sock"
[encryption]
# End-to-end encrypted Matrix rooms. Needs, in Synapse's homeserver.yaml:
# experimental_features:
# msc2409_to_device_messages_enabled: true
# msc3202_transaction_extensions: true
# msc4190_enabled: true
# enabled = false
# Create portal rooms encrypted.
# default = false
# store_dir = "crypto"
# Who may use the bridge: an MXID, a server name, or "*". Levels:
# none - messages are not bridged
# user - messages are bridged under the user's own Armada identity; may
# join communities that are already bridged
# bridge - may also bridge new communities and manage the ones they bridged
# admin - may also manage every community from Matrix (rarely needed: the
# operator has `armada-matrix-bridge list|unbridge` on the host)
# Set "*" = "bridge" to let anyone start a bridge.
[permissions]
"*" = "user"
# "@alice:example.com" = "bridge"
# [logging]
# filter = "info,armada_matrix_bridge=debug"