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:
@ -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"),
|
||||
|
||||
|
Reference in New Issue
Block a user