mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-01-18 13:10:37 +00:00
da2f438bda
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
23 lines
637 B
Lua
23 lines
637 B
Lua
default_storage = "sql"
|
|
|
|
sql = {
|
|
driver = os.getenv("DB_DRIVER");
|
|
database = os.getenv("DB_DATABASE");
|
|
host = os.getenv("DB_HOST");
|
|
port = os.getenv("DB_PORT");
|
|
username = os.getenv("DB_USERNAME");
|
|
password = os.getenv("DB_PASSWORD");
|
|
}
|
|
|
|
-- make 0.10-distributed mod_mam use sql store
|
|
archive_store = "archive2" -- Use the same data store as prosody-modules mod_mam
|
|
|
|
storage = {
|
|
-- this makes mod_mam use the sql storage backend
|
|
archive2 = "sql";
|
|
}
|
|
|
|
-- 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
|