]> Untitled Git - lemmy.git/blobdiff - crates/utils/src/settings/structs.rs
First pass at invite-only migration. (#1949)
[lemmy.git] / crates / utils / src / settings / structs.rs
index 6a20386e7b3b590cb88ab493b86918f5981328c0..2de87c5be5f0d5e97c9e57c66a8c3399128f5e2b 100644 (file)
@@ -165,8 +165,8 @@ pub struct SetupConfig {
   /// 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")]
@@ -190,4 +190,12 @@ pub struct SetupConfig {
   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>,
 }