#[default(None)]
#[doku(example = "http://localhost:8080")]
pub pictrs_url: Option<String>,
- /// Regex for slurs which are prohibited. Example: `(\bThis\b)|(\bis\b)|(\bsample\b)`
#[default(None)]
- pub additional_slurs: Option<String>,
+ #[doku(example = "(\\bThis\\b)|(\\bis\\b)|(\\bsample\\b)")]
+ pub slur_filter: Option<String>,
/// Maximum length of local community and user names
#[default(20)]
pub actor_name_max_length: usize,
+ /// Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object fetch through the search).
+ #[default(25)]
+ pub http_fetch_retry_limit: i32,
}
#[derive(Debug, Deserialize, Serialize, Clone, SmartDefault, Document)]
/// Interval length for image uploads, in seconds
#[default(3600)]
pub image_per_second: i32,
+ /// Maximum number of comments created in interval
+ #[default(6)]
+ pub comment: i32,
+ /// Interval length for comment limit, in seconds
+ #[default(600)]
+ pub comment_per_second: i32,
}
#[derive(Debug, Deserialize, Serialize, Clone, SmartDefault, Document)]
/// Username for the admin user
#[doku(example = "admin")]
pub admin_username: String,
- /// Password for the admin user
- #[doku(example = "my_passwd")]
+ /// Password for the admin user. It must be at least 10 characters.
+ #[doku(example = "my_passwd_longer_than_ten_characters")]
pub admin_password: String,
/// Name of the site (can be changed later)
#[doku(example = "My Lemmy Instance")]
pub enable_nsfw: Option<bool>,
#[default(None)]
pub community_creation_admin_only: Option<bool>,
+ #[default(None)]
+ pub require_email_verification: Option<bool>,
+ #[default(None)]
+ pub require_application: Option<bool>,
+ #[default(None)]
+ pub application_question: Option<String>,
+ #[default(None)]
+ pub private_instance: Option<bool>,
}