1
0
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:
2021-02-20 09:31:38 +01:00
parent 050d241695
commit d6c2c19b37
3 changed files with 9 additions and 0 deletions

View File

@@ -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())