This commit is contained in:
2024-03-01 12:50:08 +01:00
commit 656991b263
31 changed files with 2180 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
local domain = os.getenv("DOMAIN")
local domain_muc = os.getenv("DOMAIN_MUC")
local data_path = '/usr/local/var/lib/prosody';
local vhost = {
"accounts",
"account_details",
"roster",
"vcard",
"private",
"blocklist",
"privacy",
"archive-archive",
"offline-archive",
"pubsub_nodes-pubsub",
"pep-pubsub",
}
local muc = {
"persistent",
"config",
"state",
"muc_log-archive",
};
input {
hosts = {
[domain] = vhost;
[domain_muc] = muc;
};
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";
}
]]