Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. authentication = "internal_hashed"
  2.  
  3. -- Select the storage backend to use. By default Prosody uses flat files
  4. -- in its configured data directory, but it also supports more backends
  5. -- through modules. An "sql" backend is included by default, but requires
  6. -- additional dependencies. See https://prosody.im/doc/storage for more info.
  7.  
  8. --storage = "sql" -- Default is "internal" (Note: "sql" requires installed
  9. -- lua-dbi RPM package)
  10. storage = {
  11. roster = "sql";
  12. archive2= "sql";
  13. }
  14.  
  15. -- For the "sql" backend, you can uncomment *one* of the below to configure:
  16. --sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
  17. --sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
  18. sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "prosody", host = "postgresql" }
  19.  
  20.  
  21. -- Archiving configuration
  22. -- If mod_mam is enabled, Prosody will store a copy of every message. This
  23. -- is used to synchronize conversations between multiple clients, even if
  24. -- they are offline. This setting controls how long Prosody will keep
  25. -- messages in the archive before removing them.
  26.  
  27. archive_conversation_interval = 86400;
  28. archive_expires_after = 60 * 60 -- Remove archived messages after 1 week
  29. default_archive_policy = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement