Renamed STORAGE to DEFAULT_STORAGE. Added ARCHIVE_STORE and STORAGE_ARCHIVE2.

This commit is contained in:
Sara Aimée Smiseth 2022-08-24 17:10:54 +02:00
parent eb572d8180
commit bce67be67d
7 changed files with 93 additions and 38 deletions

View file

@ -1,4 +1,4 @@
default_storage = os.getenv("STORAGE")
default_storage = os.getenv("DEFAULT_STORAGE")
sql = {
driver = os.getenv("DB_DRIVER");
@ -9,12 +9,11 @@ sql = {
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
archive_store = os.getenv("ARCHIVE_STORE")
storage = {
-- this makes mod_mam use the sql storage backend
archive2 = os.getenv("STORAGE");
archive2 = os.getenv("STORAGE_ARCHIVE2");
}
-- https://modules.prosody.im/mod_mam.html