1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 08:25:16 +00:00

Can serve user data files directly from the API

This commit is contained in:
2021-04-15 11:41:33 +02:00
parent 52ccdf26e4
commit 0ea0997a4f
5 changed files with 103 additions and 9 deletions

View File

@ -37,6 +37,7 @@ pub struct Config {
pub listen_address: String,
pub storage_url: String,
pub storage_path: String,
pub serve_storage_file: bool,
pub terms_url: String,
pub privacy_policy_url: String,
pub play_store_url: String,
@ -122,6 +123,8 @@ impl Config {
storage_url: Config::yaml_str(parsed, "storage-url"),
storage_path: Config::yaml_str(parsed, "storage-path"),
serve_storage_file: Config::yaml_bool(parsed, "serve-storage-files"),
terms_url: Config::yaml_str(parsed, "terms-url"),
privacy_policy_url: Config::yaml_str(parsed, "privacy-policy-url"),