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:
Lambda 2024-06-26 06:45:23 +00:00 committed by Charles Hall
parent e0e7d8fd91
commit 5a6e4fac73
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
4 changed files with 29 additions and 25 deletions

View file

@ -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))