grapevine/tests/integrations/fixtures/check_config/valid.toml
Charles Hall 5a5608e088
separate media and database paths
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)]`.
2025-03-20 11:33:59 -07:00

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"