diff --git a/config.yaml b/config.yaml index 843679a..e39d109 100644 --- a/config.yaml +++ b/config.yaml @@ -26,6 +26,9 @@ serve-storage-files: true terms-url: http://devweb.local/comunic/current/about.php?cgu privacy-policy-url: http://devweb.local/comunic/current/about.php?cgu&privacy +# Email where the Comunic staff can be contacted +contact-email: contact@communiquons.org + # Android application download URL play-store-url: https://play.google.com/store/apps/details?id=org.communiquons.comunic android-direct-download-url: https://files.communiquons.org/comunic/mobile/latest-android.php diff --git a/src/api_data/server_config.rs b/src/api_data/server_config.rs index 42c3331..1037495 100644 --- a/src/api_data/server_config.rs +++ b/src/api_data/server_config.rs @@ -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(), diff --git a/src/data/config.rs b/src/data/config.rs index bb1d272..f787743 100644 --- a/src/data/config.rs +++ b/src/data/config.rs @@ -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, @@ -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"),