Software /
code /
prosody
File
tools/migration/migrator.cfg.lua @ 13665:30a91d819913 13.0
mod_account_activity: Record an account's last activity timestamp
This is similar to mod_lastlog/mod_lastlog2.
Some functionality was dropped, compared to mod_lastlog2. These features
(recording the IP address, or tracking the timestamp of multiple events) are
handled better by the mod_audit family of modules. For example, those
correctly handle multiple logins, IP address truncation, and data retention
policies.
The "registered" timestamp from mod_lastlog2 was also dropped, as this has
been stored in account_details by Prosody itself since at least 0.12 already.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 12 Feb 2025 12:33:45 +0000 |
parent | 13296:803a4ef6244d |
line wrap: on
line source
local data_path = "../../data"; local vhost = { "accounts", "account_details", "account_roles", "roster", "vcard", "private", "blocklist", "privacy", "archive-archive", "offline-archive", "pubsub_nodes-pubsub", "pep-pubsub", "cron", "smacks_h", } local muc = { "persistent", "config", "state", "muc_log-archive", "cron", }; local upload = { "uploads-archive", "upload_stats", "cron", } input { hosts = { ["example.com"] = vhost; ["conference.example.com"] = muc; ["share.example.com"] = upload; }; type = "internal"; path = data_path; } output { type = "sql"; driver = "SQLite3"; database = data_path.."/prosody.sqlite"; } --[[ input { type = "internal"; path = data_path; } output { type = "sql"; driver = "SQLite3"; database = data_path.."/prosody.sqlite"; } ]]