mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-10-30 23:24:42 +00:00 
			
		
		
		
	Add contact email to server configuration
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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(), | ||||
|  | ||||
|   | ||||
| @@ -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"), | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user