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
|
# Change it to fit your website's image
|
||||||
instance_name="blek! File"
|
instance_name="blek! File"
|
||||||
|
|
||||||
|
# Instance motto.
|
||||||
|
# Leave a blank string to disable
|
||||||
|
instance_motto="A minute file sharing service"
|
||||||
|
|
||||||
# URL of the instance.
|
# URL of the instance.
|
||||||
# You must set this to a valid URL
|
# You must set this to a valid URL
|
||||||
instance_url=""
|
instance_url=""
|
|
@ -54,15 +54,20 @@ pub struct Branding {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
instance_name: String,
|
instance_name: String,
|
||||||
|
|
||||||
|
/// Instance motto
|
||||||
|
#[serde(default)]
|
||||||
|
instance_motto: String,
|
||||||
|
|
||||||
/// Instance URL (not the bind URL). Must be Some(...)
|
/// Instance URL (not the bind URL). Must be Some(...)
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
instance_url: Option<String>
|
instance_url: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Branding {
|
impl Default for Branding {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Branding {
|
Branding {
|
||||||
instance_name: "blek! File".into(),
|
instance_name: "blek! File".into(),
|
||||||
|
instance_motto: "A minute file sharing".into(),
|
||||||
instance_url: None,
|
instance_url: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue