mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
The primary motivation for this change is to support databases that don't take a path, e.g. out of process databases. This configuration structure leaves the door open for other media storage mechanisms in the future, such as S3. It's also structured to avoid `#[serde(flatten)]` so that we can use `#[serde(deny_unknown_fields)]`.
25 lines
446 B
TOML
25 lines
446 B
TOML
server_name = "example.com"
|
|
|
|
allow_registration = false
|
|
|
|
max_request_size = 20_000_000
|
|
|
|
[server_discovery]
|
|
server.authority = "matrix.example.com:443"
|
|
client.base_url = "https://matrix.example.com"
|
|
|
|
[database]
|
|
backend = "rocksdb"
|
|
path = "/var/lib/grapevine/database"
|
|
|
|
[media.backend]
|
|
type = "filesystem"
|
|
path = "/var/lib/grapevine/media"
|
|
|
|
[federation]
|
|
enable = true
|
|
trusted_servers = ["matrix.org"]
|
|
|
|
[[listen]]
|
|
type="tcp"
|
|
address = "0.0.0.0"
|