/// 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,
+
+ /// Set the URL for opentelemetry exports. If you do not have an opentelemetry collector, do not set this option
+ #[default(None)]
+ #[doku(skip)]
+ pub opentelemetry_url: Option<String>,
}
#[derive(Debug, Deserialize, Serialize, Clone, SmartDefault, Document)]
pub pool_size: u32,
}
-#[derive(Debug, Deserialize, Serialize, Clone, Document)]
+#[derive(Debug, Deserialize, Serialize, Clone, Document, SmartDefault)]
pub struct EmailConfig {
/// Hostname and port of the smtp server
#[doku(example = "localhost:25")]
#[doku(example = "noreply@example.com")]
/// Address to send emails from, eg "noreply@your-instance.com"
pub smtp_from_address: String,
- /// Whether or not smtp connections should use tls
- pub use_tls: bool,
+ /// Whether or not smtp connections should use tls. Can be none, tls, or starttls
+ #[default("none")]
+ #[doku(example = "none")]
+ pub tls_type: String,
}
#[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>,
+ #[default(None)]
+ pub default_theme: Option<String>,
}