diff --git a/filed/config/filed.toml.example b/filed/config/filed.toml.example index bbd4f1a..fb54b40 100644 --- a/filed/config/filed.toml.example +++ b/filed/config/filed.toml.example @@ -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="" \ No newline at end of file diff --git a/filed/src/config/types.rs b/filed/src/config/types.rs index ae028ba..1a97280 100644 --- a/filed/src/config/types.rs +++ b/filed/src/config/types.rs @@ -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 + instance_url: Option, } 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(()) }