mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-09-19 19:38:47 +00:00
Add terms url to server config
This commit is contained in:
@@ -30,6 +30,7 @@ pub struct Config {
|
||||
pub listen_address: String,
|
||||
pub storage_url: String,
|
||||
pub storage_path: String,
|
||||
pub terms_url: String,
|
||||
pub proxy: Option<String>,
|
||||
pub force_https: bool,
|
||||
pub verbose_mode: bool,
|
||||
@@ -101,6 +102,8 @@ impl Config {
|
||||
storage_url: Config::yaml_str(parsed, "storage-url"),
|
||||
storage_path: Config::yaml_str(parsed, "storage-path"),
|
||||
|
||||
terms_url: Config::yaml_str(parsed, "terms-url"),
|
||||
|
||||
proxy: match proxy.as_ref() {
|
||||
"none" => None,
|
||||
s => Some(s.to_string())
|
||||
|
Reference in New Issue
Block a user