add instance motto config option
This commit is contained in:
parent
6a95446ebe
commit
352444198f
|
@ -46,6 +46,10 @@ file_del_timeout=1800
|
|||
# Change it to fit your website's image
|
||||
instance_name="blek! File"
|
||||
|
||||
# Instance motto.
|
||||
# Leave a blank string to disable
|
||||
instance_motto="A minute file sharing service"
|
||||
|
||||
# URL of the instance.
|
||||
# You must set this to a valid URL
|
||||
instance_url=""
|
|
@ -53,16 +53,21 @@ pub struct Branding {
|
|||
/// Instance name
|
||||
#[serde(default)]
|
||||
instance_name: String,
|
||||
|
||||
/// Instance motto
|
||||
#[serde(default)]
|
||||
instance_motto: String,
|
||||
|
||||
/// Instance URL (not the bind URL). Must be Some(...)
|
||||
#[serde(default)]
|
||||
instance_url: Option<String>
|
||||
instance_url: Option<String>,
|
||||
}
|
||||
|
||||
impl Default for Branding {
|
||||
fn default() -> Self {
|
||||
Branding {
|
||||
instance_name: "blek! File".into(),
|
||||
instance_motto: "A minute file sharing".into(),
|
||||
instance_url: None,
|
||||
}
|
||||
}
|
||||
|
@ -94,7 +99,7 @@ impl Config {
|
|||
pub fn validate(self: &Self) -> Result<(), String> {
|
||||
self.files.validate()?;
|
||||
self.brand.validate()?;
|
||||
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue