mirror of https://github.com/bjc/prosody
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
810 B
60 lines
810 B
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";
|
|
}
|
|
|
|
]]
|
|
|