mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-15 03:38:56 -05:00
add federation allow list
This commit is contained in:
parent
eb7d893c86
commit
371103fb35
15 changed files with 101 additions and 94 deletions
|
|
@ -1335,12 +1335,22 @@ pub struct Config {
|
|||
/// sender user's server name, inbound federation X-Matrix origin, and
|
||||
/// outbound federation handler.
|
||||
///
|
||||
/// Additionally, it will hide messages from these servers for all users
|
||||
/// on this server.
|
||||
///
|
||||
/// Basically "global" ACLs.
|
||||
///
|
||||
/// default: []
|
||||
#[serde(default)]
|
||||
pub forbidden_remote_server_names: HashSet<OwnedServerName>,
|
||||
|
||||
/// The inverse of `forbidden_remote_server_names`. By default, allows all
|
||||
/// servers. `forbidden_remote_server_names` takes precidence.
|
||||
///
|
||||
/// default: []
|
||||
#[serde(default)]
|
||||
pub allowed_remote_server_names: HashSet<OwnedServerName>,
|
||||
|
||||
/// List of forbidden server names that we will block all outgoing federated
|
||||
/// room directory requests for. Useful for preventing our users from
|
||||
/// wandering into bad servers or spaces.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue