mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-05-04 13:10:38 +00:00
Add ENV variables for http_max_content_size and http_upload_file_size_limit (#57)
Fixes #55 and fixes #56: * Add environment variable HTTP_UPLOAD_FILE_SIZE_LIMIT for setting http_upload_file_size_limit * Add environment variable HTTP_MAX_CONTENT_SIZE * Add domain_http_upload to disco_items to support http_upload on some clients and if http_upload is not a subdomain
This commit is contained in:
parent
375b006814
commit
da2f438bda
4 changed files with 19 additions and 1 deletions
|
@ -20,3 +20,4 @@ storage = {
|
|||
-- https://modules.prosody.im/mod_mam.html
|
||||
archive_expires_after = "1y"
|
||||
|
||||
http_max_content_size = os.getenv("HTTP_MAX_CONTENT_SIZE") or 1024 * 1024 * 10 -- Default is 10MB
|
||||
|
|
|
@ -20,10 +20,14 @@ https_ssl = {
|
|||
}
|
||||
|
||||
VirtualHost (domain)
|
||||
disco_items = {
|
||||
{ domain_http_upload },
|
||||
}
|
||||
|
||||
-- Set up a http file upload because proxy65 is not working in muc
|
||||
Component (domain_http_upload) "http_upload"
|
||||
http_upload_expire_after = 60 * 60 * 24 * 7 -- a week in seconds
|
||||
http_upload_file_size_limit = os.getenv("HTTP_UPLOAD_FILE_SIZE_LIMIT") or 1024 * 1024 -- Default is 1MB
|
||||
|
||||
Component (domain_muc) "muc"
|
||||
name = "Prosody Chatrooms"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue