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

22 lines
501 B
Lua
Raw Permalink Normal View History

default_storage = os.getenv("DEFAULT_STORAGE")
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
}
archive_store = os.getenv("ARCHIVE_STORE")
2018-01-13 23:31:10 +00:00
2016-10-18 20:20:59 +00:00
storage = {
-- this makes mod_mam use the sql storage backend
archive2 = os.getenv("STORAGE_ARCHIVE2");
2016-10-18 20:20:59 +00:00
}
-- https://modules.prosody.im/mod_mam.html
archive_expires_after = "1y"