Add environment variable HTTP_UPLOAD_FILE_SIZE_LIMIT for setting http_upload_file_size_limit

This commit is contained in:
Sara Aimée Smiseth 2023-09-07 15:41:10 +02:00
parent 375b006814
commit 6058567577
2 changed files with 8 additions and 0 deletions

View file

@ -24,6 +24,7 @@ VirtualHost (domain)
-- 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"