mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-04-19 16:01:14 +00:00

#38 The messages aren't stored on the server as files. This is due to the use of archive2 instead of just archive as the prosody mam man page tells: > Legacy message archive > > Early versions of mod_mam (which were available in [prosody-modules](https://prosody.im/community_modules)) stored data in a store called 'archive2'. This store is now just called 'archive'. > > mod_mam can be instructed to use the older store name if you still have data there. > > archive_store = "archive2"; -- the old data > storage = { > archive2 = "sql"; > }
22 lines
568 B
Lua
22 lines
568 B
Lua
default_storage = os.getenv("STORAGE")
|
|
|
|
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");
|
|
}
|
|
|
|
-- 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
|
|
archive = os.getenv("STORAGE");
|
|
}
|
|
|
|
-- https://modules.prosody.im/mod_mam.html
|
|
archive_expires_after = "1y"
|
|
|