mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 00:01:24 +01:00
Add a "check-config" command to validate config files & tests for it
This commit is contained in:
parent
70ee206031
commit
26ba489aa3
24 changed files with 492 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
some_name = "example.com"
|
||||
prort = 6167
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
server_name = 6667
|
||||
port = "ircd"
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
server_name = "example.com"
|
||||
|
||||
[server_discovery]
|
||||
client.base_url = "https://matrix.example.com"
|
||||
|
||||
[database]
|
||||
backend = "rocksdb"
|
||||
path = "/var/lib/grapevine"
|
||||
21
tests/integrations/fixtures/check_config/valid.toml
Normal file
21
tests/integrations/fixtures/check_config/valid.toml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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"
|
||||
|
||||
[federation]
|
||||
enable = true
|
||||
trusted_servers = ["matrix.org"]
|
||||
|
||||
[[listen]]
|
||||
type="tcp"
|
||||
address = "0.0.0.0"
|
||||
Loading…
Add table
Add a link
Reference in a new issue