prosody: Allow configuration of global upload storage quota

This commit is contained in:
Matthew Wild 2021-10-14 14:16:04 +01:00
parent 6852c37111
commit 03f0bb2bd9
1 changed files with 3 additions and 0 deletions

View File

@ -263,6 +263,9 @@ Component ("share."..DOMAIN) "http_file_share"
end
http_file_share_size_limit = 1024 * 1024 * 100 -- 100MB
http_file_share_expire_after = 60 * 60 * 24 * RETENTION_DAYS -- N days
if ENV_SNIKKET_UPLOAD_STORAGE_GB and tonumber(ENV_SNIKKET_UPLOAD_STORAGE_GB) then
http_file_share_global_quota = 1024 * 1024 * 1024 * tonumber(ENV_SNIKKET_UPLOAD_STORAGE_GB)
end
http_paths = {
file_share = "/upload"
}