Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- authentication = "internal_hashed"
- -- Select the storage backend to use. By default Prosody uses flat files
- -- in its configured data directory, but it also supports more backends
- -- through modules. An "sql" backend is included by default, but requires
- -- additional dependencies. See https://prosody.im/doc/storage for more info.
- --storage = "sql" -- Default is "internal" (Note: "sql" requires installed
- -- lua-dbi RPM package)
- storage = {
- roster = "sql";
- archive2= "sql";
- }
- -- For the "sql" backend, you can uncomment *one* of the below to configure:
- --sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
- --sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
- sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "prosody", host = "postgresql" }
- -- Archiving configuration
- -- If mod_mam is enabled, Prosody will store a copy of every message. This
- -- is used to synchronize conversations between multiple clients, even if
- -- they are offline. This setting controls how long Prosody will keep
- -- messages in the archive before removing them.
- archive_conversation_interval = 86400;
- archive_expires_after = 60 * 60 -- Remove archived messages after 1 week
- default_archive_policy = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement