1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-07-27 17:28:36 +00:00

Preview URLs

Closes: #14
This commit is contained in:
Reiner Herrmann 2023-07-28 17:53:15 +02:00
parent dc0fa09a57
commit bb4cade9fd
12 changed files with 460 additions and 3 deletions

View file

@ -53,6 +53,8 @@ pub struct Config {
pub allow_encryption: bool,
#[serde(default = "false_fn")]
pub allow_federation: bool,
#[serde(default = "false_fn")]
pub allow_url_preview: bool,
#[serde(default = "true_fn")]
pub allow_room_creation: bool,
#[serde(default = "true_fn")]
@ -184,6 +186,7 @@ impl fmt::Display for Config {
),
("Allow encryption", &self.allow_encryption.to_string()),
("Allow federation", &self.allow_federation.to_string()),
("Allow URL preview", &self.allow_url_preview.to_string()),
("Allow room creation", &self.allow_room_creation.to_string()),
(
"JWT secret",