1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-26 07:19:22 +00:00

Add contact email to server configuration

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

View File

@ -26,6 +26,9 @@ serve-storage-files: true
terms-url: http://devweb.local/comunic/current/about.php?cgu terms-url: http://devweb.local/comunic/current/about.php?cgu
privacy-policy-url: http://devweb.local/comunic/current/about.php?cgu&privacy 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 # Android application download URL
play-store-url: https://play.google.com/store/apps/details?id=org.communiquons.comunic 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 android-direct-download-url: https://files.communiquons.org/comunic/mobile/latest-android.php

View File

@ -68,6 +68,7 @@ pub struct ServerConfig {
min_supported_mobile_version: &'static str, min_supported_mobile_version: &'static str,
terms_url: &'static str, terms_url: &'static str,
privacy_policy_url: &'static str, privacy_policy_url: &'static str,
contact_email: &'static str,
play_store_url: &'static str, play_store_url: &'static str,
android_direct_download_url: String, android_direct_download_url: String,
@ -84,6 +85,7 @@ impl ServerConfig {
min_supported_mobile_version: MIN_SUPPORTED_MOBILE_VERSION, min_supported_mobile_version: MIN_SUPPORTED_MOBILE_VERSION,
terms_url: &conf().terms_url, terms_url: &conf().terms_url,
privacy_policy_url: &conf().privacy_policy_url, privacy_policy_url: &conf().privacy_policy_url,
contact_email: &conf().contact_email,
play_store_url: &conf().play_store_url, play_store_url: &conf().play_store_url,
android_direct_download_url: conf().android_direct_download_url.clone(), 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 serve_storage_file: bool,
pub terms_url: String, pub terms_url: String,
pub privacy_policy_url: String, pub privacy_policy_url: String,
pub contact_email: String,
pub play_store_url: String, pub play_store_url: String,
pub android_direct_download_url: String, pub android_direct_download_url: String,
pub proxy: Option<String>, pub proxy: Option<String>,
@ -131,6 +132,8 @@ impl Config {
terms_url: Config::yaml_str(parsed, "terms-url"), terms_url: Config::yaml_str(parsed, "terms-url"),
privacy_policy_url: Config::yaml_str(parsed, "privacy-policy-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"), play_store_url: Config::yaml_str(parsed, "play-store-url"),
android_direct_download_url: Config::yaml_str(parsed, "android-direct-download-url"), android_direct_download_url: Config::yaml_str(parsed, "android-direct-download-url"),