diff options
| author | Lukasz Kasprzak <lukasz.kasprzak@pm.me> | 2026-03-20 19:16:32 +0100 |
|---|---|---|
| committer | Lukasz Kasprzak <lukasz.kasprzak@pm.me> | 2026-03-20 19:16:32 +0100 |
| commit | 39711cf6c2ec5a3b4480dcb4800cc3802bda5bf2 (patch) | |
| tree | 9221704f413398cfb5d5759083b1e7032566820e /straper/db/public/prosody | |
| parent | 6b59b75c3a294060dea66bdee16ffaf95ae92889 (diff) | |
| download | bin-39711cf6c2ec5a3b4480dcb4800cc3802bda5bf2.tar.gz bin-39711cf6c2ec5a3b4480dcb4800cc3802bda5bf2.zip | |
feat: first fully successful run e2e on straper
Diffstat (limited to 'straper/db/public/prosody')
| -rw-r--r-- | straper/db/public/prosody/etc-prosody/README | 9 | ||||
| -rw-r--r-- | straper/db/public/prosody/etc-prosody/migrator.cfg.lua | 60 |
2 files changed, 69 insertions, 0 deletions
diff --git a/straper/db/public/prosody/etc-prosody/README b/straper/db/public/prosody/etc-prosody/README new file mode 100644 index 0000000..b1e8eb1 --- /dev/null +++ b/straper/db/public/prosody/etc-prosody/README @@ -0,0 +1,9 @@ +Prosody configuration directory +=============================== + +The configuration file /etc/prosody/prosody.cfg.lua should contain +only global settings. + +Per-host configuration files should be placed in /etc/prosody/conf.avail/, +and the active ones should be linked in /etc/prosody/conf.d/ + diff --git a/straper/db/public/prosody/etc-prosody/migrator.cfg.lua b/straper/db/public/prosody/etc-prosody/migrator.cfg.lua new file mode 100644 index 0000000..75a8ce2 --- /dev/null +++ b/straper/db/public/prosody/etc-prosody/migrator.cfg.lua @@ -0,0 +1,60 @@ +local data_path = '/var/lib/prosody'; + +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"; +} + +]] |
