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:
Sara Aimée Smiseth 2023-09-07 17:13:28 +02:00
parent 6058567577
commit 31b6cfe28f
4 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -20,6 +20,9 @@ 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"