1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 00:45:18 +00:00

Add contact email to server configuration

This commit is contained in:
2021-04-30 18:45:06 +02:00
parent 2e3d06c2eb
commit d07100a2c4
3 changed files with 8 additions and 0 deletions

View File

@ -68,6 +68,7 @@ pub struct ServerConfig {
min_supported_mobile_version: &'static str,
terms_url: &'static str,
privacy_policy_url: &'static str,
contact_email: &'static str,
play_store_url: &'static str,
android_direct_download_url: String,
@ -84,6 +85,7 @@ impl ServerConfig {
min_supported_mobile_version: MIN_SUPPORTED_MOBILE_VERSION,
terms_url: &conf().terms_url,
privacy_policy_url: &conf().privacy_policy_url,
contact_email: &conf().contact_email,
play_store_url: &conf().play_store_url,
android_direct_download_url: conf().android_direct_download_url.clone(),

View File

@ -42,6 +42,7 @@ pub struct Config {
pub serve_storage_file: bool,
pub terms_url: String,
pub privacy_policy_url: String,
pub contact_email: String,
pub play_store_url: String,
pub android_direct_download_url: String,
pub proxy: Option<String>,
@ -131,6 +132,8 @@ impl Config {
terms_url: Config::yaml_str(parsed, "terms-url"),
privacy_policy_url: Config::yaml_str(parsed, "privacy-policy-url"),
contact_email: Config::yaml_str(parsed, "contact-email"),
play_store_url: Config::yaml_str(parsed, "play-store-url"),
android_direct_download_url: Config::yaml_str(parsed, "android-direct-download-url"),