forked from mirror/prosody
982ddcd60b
* Move multiple defaults from entrypoint script to cfg.lua files. * Move remaining defaults from entrypoint script to cfg.lua files. * Update postgres version in tests * Register users with prosodyctl in tests * Replace 'docker-compose' with 'docker compose'
23 lines
670 B
Lua
23 lines
670 B
Lua
default_storage = "sql"
|
|
|
|
sql = {
|
|
driver = os.getenv("DB_DRIVER") or "SQLite3";
|
|
database = os.getenv("DB_DATABASE") or "prosody.sqlite";
|
|
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
|