add server-side support for /.well-known/matrix/support
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
c946352e7f
commit
39946beda8
6 changed files with 79 additions and 12 deletions
|
@ -17,7 +17,7 @@ use hickory_resolver::TokioAsyncResolver;
|
|||
use regex::RegexSet;
|
||||
use ruma::{
|
||||
api::{
|
||||
client::sync::sync_events,
|
||||
client::{discovery::discover_support::ContactRole, sync::sync_events},
|
||||
federation::discovery::{ServerSigningKeys, VerifyKey},
|
||||
},
|
||||
serde::Base64,
|
||||
|
@ -307,6 +307,14 @@ impl Service<'_> {
|
|||
|
||||
pub fn ip_range_denylist(&self) -> &[String] { &self.config.ip_range_denylist }
|
||||
|
||||
pub fn well_known_support_page(&self) -> &Option<String> { &self.config.well_known_support_page }
|
||||
|
||||
pub fn well_known_support_role(&self) -> &Option<ContactRole> { &self.config.well_known_support_role }
|
||||
|
||||
pub fn well_known_support_email(&self) -> &Option<String> { &self.config.well_known_support_email }
|
||||
|
||||
pub fn well_known_support_mxid(&self) -> &Option<OwnedUserId> { &self.config.well_known_support_mxid }
|
||||
|
||||
pub fn block_non_admin_invites(&self) -> bool { self.config.block_non_admin_invites }
|
||||
|
||||
pub fn supported_room_versions(&self) -> Vec<RoomVersionId> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue