mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-25 23:09:22 +00:00
Add Android application download links
This commit is contained in:
parent
d6c2c19b37
commit
1ad4e344f6
@ -23,6 +23,10 @@ storage-path: /home/pierre/Documents/projets_web/comunic/current/user_data/
|
|||||||
# URL where Comunic Terms of use are available
|
# URL where Comunic Terms of use are available
|
||||||
terms-url: http://devweb.local/comunic/current/about.php?cgu
|
terms-url: http://devweb.local/comunic/current/about.php?cgu
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
# Print more information to the console
|
# Print more information to the console
|
||||||
verbose-mode: true
|
verbose-mode: true
|
||||||
|
|
||||||
|
@ -32,6 +32,8 @@ struct DataConservationPolicy {
|
|||||||
pub struct ServerConfig {
|
pub struct ServerConfig {
|
||||||
min_supported_mobile_version: &'static str,
|
min_supported_mobile_version: &'static str,
|
||||||
terms_url: String,
|
terms_url: String,
|
||||||
|
play_store_url: String,
|
||||||
|
android_direct_download_url: String,
|
||||||
password_policy: PasswordPolicy,
|
password_policy: PasswordPolicy,
|
||||||
data_conservation_policy: DataConservationPolicy,
|
data_conservation_policy: DataConservationPolicy,
|
||||||
}
|
}
|
||||||
@ -41,6 +43,8 @@ impl ServerConfig {
|
|||||||
ServerConfig {
|
ServerConfig {
|
||||||
min_supported_mobile_version: MIN_SUPPORTED_MOBILE_VERSION,
|
min_supported_mobile_version: MIN_SUPPORTED_MOBILE_VERSION,
|
||||||
terms_url: conf().terms_url.clone(),
|
terms_url: conf().terms_url.clone(),
|
||||||
|
play_store_url: conf().play_store_url.clone(),
|
||||||
|
android_direct_download_url: conf().android_direct_download_url.clone(),
|
||||||
password_policy: PasswordPolicy {
|
password_policy: PasswordPolicy {
|
||||||
allow_email_in_password: password_policy::ALLOW_EMAIL_IN_PASSWORD,
|
allow_email_in_password: password_policy::ALLOW_EMAIL_IN_PASSWORD,
|
||||||
allow_name_in_password: password_policy::ALLOW_NAME_IN_PASSWORD,
|
allow_name_in_password: password_policy::ALLOW_NAME_IN_PASSWORD,
|
||||||
|
@ -31,6 +31,8 @@ pub struct Config {
|
|||||||
pub storage_url: String,
|
pub storage_url: String,
|
||||||
pub storage_path: String,
|
pub storage_path: String,
|
||||||
pub terms_url: String,
|
pub terms_url: String,
|
||||||
|
pub play_store_url: String,
|
||||||
|
pub android_direct_download_url: String,
|
||||||
pub proxy: Option<String>,
|
pub proxy: Option<String>,
|
||||||
pub force_https: bool,
|
pub force_https: bool,
|
||||||
pub verbose_mode: bool,
|
pub verbose_mode: bool,
|
||||||
@ -104,6 +106,9 @@ impl Config {
|
|||||||
|
|
||||||
terms_url: Config::yaml_str(parsed, "terms-url"),
|
terms_url: Config::yaml_str(parsed, "terms-url"),
|
||||||
|
|
||||||
|
play_store_url: Config::yaml_str(parsed, "play-store-url"),
|
||||||
|
android_direct_download_url: Config::yaml_str(parsed, "android-direct-download-url"),
|
||||||
|
|
||||||
proxy: match proxy.as_ref() {
|
proxy: match proxy.as_ref() {
|
||||||
"none" => None,
|
"none" => None,
|
||||||
s => Some(s.to_string())
|
s => Some(s.to_string())
|
||||||
|
Loading…
Reference in New Issue
Block a user