Files
prosody-podman/conf.d/02-storage.cfg.lua
T
2026-08-02 19:35:07 +02:00

36 lines
818 B
Lua

local getenv = Lua.os.getenv
default_storage = "sql"
sql = {
driver = getenv("DB_DRIVER") or "SQLite3";
database = getenv("DB_DATABASE") or "prosody.sqlite";
host = getenv("DB_HOST");
port = getenv("DB_PORT");
username = getenv("DB_USERNAME");
password = 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"
-- bandwith limits
--limits = {
--c2s = {
--rate = "10kb/s";
--};
--s2sin = {
--rate = "30kb/s";
--};
--}
http_max_content_size = getenv("HTTP_MAX_CONTENT_SIZE") or 1024 * 1024 * 10 -- Default is 10MB