2022-08-24 15:10:54 +00:00
|
|
|
default_storage = os.getenv("DEFAULT_STORAGE")
|
2021-05-07 12:06:29 +00:00
|
|
|
|
2016-10-18 20:20:59 +00:00
|
|
|
sql = {
|
2021-05-07 12:06:29 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-08-24 15:10:54 +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
|
2022-08-24 15:10:54 +00:00
|
|
|
archive2 = os.getenv("STORAGE_ARCHIVE2");
|
2016-10-18 20:20:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
-- https://modules.prosody.im/mod_mam.html
|
|
|
|
archive_expires_after = "1y"
|
2018-11-27 19:33:37 +00:00
|
|
|
|