mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
Move federation config to separate config section
This renames: allow_federation -> federation.enable trusted_servers -> federation.trusted_servers max_fetch_prev_events -> federation.max_fetch_prev_events max_concurrent_requests -> federation.max_concurrent_requests
This commit is contained in:
parent
e0e7d8fd91
commit
5a6e4fac73
4 changed files with 29 additions and 25 deletions
|
|
@ -463,7 +463,7 @@ fn routes(config: &Config) -> Router {
|
|||
.route("/", get(it_works))
|
||||
.fallback(not_found);
|
||||
|
||||
if config.allow_federation {
|
||||
if config.federation.enable {
|
||||
router
|
||||
.ruma_route(s2s::get_server_version_route)
|
||||
.route("/_matrix/key/v2/server", get(s2s::get_server_keys_route))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue