prosody/conf.d/02-storage.cfg.lua

23 lines
539 B
Lua
Raw Normal View History

2016-10-18 20:20:59 +00:00
default_storage = "sql"
2016-10-18 20:20:59 +00:00
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");
2016-10-18 20:20:59 +00:00
}
2018-01-13 23:31:10 +00:00
-- make 0.10-distributed mod_mam use sql store
archive_store = "archive2" -- Use the same data store as prosody-modules mod_mam
2016-10-18 20:20:59 +00:00
storage = {
-- this makes mod_mam use the sql storage backend
archive2 = "sql";
}
-- https://modules.prosody.im/mod_mam.html
archive_expires_after = "1y"