Mention max length for site name in config (fixes #3006) (#4010)

* Mention max length for site name in config (fixes #3006)

* ci
This commit is contained in:
Nutomic 2023-10-04 15:09:25 +02:00 committed by GitHub
parent 2dad29106a
commit 50b7322ff3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -63,9 +63,9 @@
setup: { setup: {
# Username for the admin user # Username for the admin user
admin_username: "admin" admin_username: "admin"
# Password for the admin user. It must be at least 10 characters. # Password for the admin user. It must be between 10 and 60 characters.
admin_password: "tf6HHDS4RolWfFhk4Rq9" admin_password: "tf6HHDS4RolWfFhk4Rq9"
# Name of the site (can be changed later) # Name of the site, can be changed later. Maximum 20 characters.
site_name: "My Lemmy Instance" site_name: "My Lemmy Instance"
# Email for the admin user (optional, can be omitted and set later through the website) # Email for the admin user (optional, can be omitted and set later through the website)
admin_email: "user@example.com" admin_email: "user@example.com"

View file

@ -154,10 +154,10 @@ pub struct SetupConfig {
/// Username for the admin user /// Username for the admin user
#[doku(example = "admin")] #[doku(example = "admin")]
pub admin_username: String, pub admin_username: String,
/// Password for the admin user. It must be at least 10 characters. /// Password for the admin user. It must be between 10 and 60 characters.
#[doku(example = "tf6HHDS4RolWfFhk4Rq9")] #[doku(example = "tf6HHDS4RolWfFhk4Rq9")]
pub admin_password: String, pub admin_password: String,
/// Name of the site (can be changed later) /// Name of the site, can be changed later. Maximum 20 characters.
#[doku(example = "My Lemmy Instance")] #[doku(example = "My Lemmy Instance")]
pub site_name: String, pub site_name: String,
/// Email for the admin user (optional, can be omitted and set later through the website) /// Email for the admin user (optional, can be omitted and set later through the website)