annotate docker/prosody-e2e/prosody.cfg.lua @ 4202:b26339343076

core: use a user specific directory for PID file: default location of pid file is now specific to logged user, this allow to run several instances of Libervia by different users on the same machine without PID conflicts.
author Goffi <goffi@goffi.org>
date Sun, 14 Jan 2024 17:48:02 +0100
parents 22cd3094cd1e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
1 -- Prosody XMPP Server Configuration
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
2 -- Adapted for SàT e2e tests
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
3
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
4 local socket = require "socket"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
5
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
6 daemonize = false;
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
7 admins = { }
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
8
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
9 plugin_paths = { "/usr/local/share/prosody/modules" }
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
10
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
11 modules_enabled = {
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
12 "admin_adhoc";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
13 "blocklist";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
14 "carbons";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
15 "csi";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
16 "csi_simple";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
17 "delegation";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
18 "dialback";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
19 "disco";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
20 "mam";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
21 "pep";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
22 "ping";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
23 "private";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
24 "privilege";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
25 "register";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
26 "roster";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
27 "saslauth";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
28 "smacks";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
29 "time";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
30 "tls";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
31 "uptime";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
32 "vcard4";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
33 "vcard_legacy";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
34 "version";
3386
129cc3e16825 docker (prosody_e2e): install `ipcheck` so jp doesn't need to contact external website
Goffi <goffi@goffi.org>
parents: 3381
diff changeset
35 "ipcheck";
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
36 }
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
37
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
38 modules_disabled = {
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
39 }
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
40
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
41 allow_registration = true
3497
73e04040d577 docker: update following name changes:
Goffi <goffi@goffi.org>
parents: 3386
diff changeset
42 registration_whitelist = { socket.dns.toip("backend") }
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
43 whitelist_registration_only = true
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
44
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
45 c2s_require_encryption = true
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
46 s2s_require_encryption = true
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
47 s2s_secure_auth = false
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
48
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
49 pidfile = "/var/run/prosody/prosody.pid"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
50
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
51 authentication = "internal_hashed"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
52
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
53 archive_expires_after = "1d"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
54
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
55 log = {
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
56 {levels = {min = "info"}, to = "console"};
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
57 }
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
58
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
59 certificates = "certs"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
60
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
61 ssl = {
3497
73e04040d577 docker: update following name changes:
Goffi <goffi@goffi.org>
parents: 3386
diff changeset
62 key = "/usr/share/libervia/certificates/server1.test-key.pem";
73e04040d577 docker: update following name changes:
Goffi <goffi@goffi.org>
parents: 3386
diff changeset
63 certificate = "/usr/share/libervia/certificates/server1.test.pem";
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
64 }
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
65
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
66 component_interface = "*"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
67
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
68 VirtualHost "server1.test"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
69 privileged_entities = {
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
70 ["pubsub.server1.test"] = {
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
71 roster = "get";
3768
b443821399a3 docker (prosody-e2e): update Prosody's conf:
Goffi <goffi@goffi.org>
parents: 3497
diff changeset
72 message = "outgoing";
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
73 presence = "roster";
3768
b443821399a3 docker (prosody-e2e): update Prosody's conf:
Goffi <goffi@goffi.org>
parents: 3497
diff changeset
74 iq = {
b443821399a3 docker (prosody-e2e): update Prosody's conf:
Goffi <goffi@goffi.org>
parents: 3497
diff changeset
75 ["http://jabber.org/protocol/pubsub"] = "set";
b443821399a3 docker (prosody-e2e): update Prosody's conf:
Goffi <goffi@goffi.org>
parents: 3497
diff changeset
76 };
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
77 },
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
78 }
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
79
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
80 delegations = {
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
81 ["urn:xmpp:mam:2"] = {
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
82 filtering = {"node"};
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
83 jid = "pubsub.server1.test";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
84 },
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
85 ["http://jabber.org/protocol/pubsub"] = {
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
86 jid = "pubsub.server1.test";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
87 },
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
88 ["http://jabber.org/protocol/pubsub#owner"] = {
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
89 jid = "pubsub.server1.test";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
90 },
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
91 ["https://salut-a-toi/protocol/schema:0"] = {
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
92 jid = "pubsub.server1.test";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
93 },
3768
b443821399a3 docker (prosody-e2e): update Prosody's conf:
Goffi <goffi@goffi.org>
parents: 3497
diff changeset
94 ["https://salut-a-toi.org/spec/pubsub_admin:0"] = {
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
95 jid = "pubsub.server1.test";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
96 },
3768
b443821399a3 docker (prosody-e2e): update Prosody's conf:
Goffi <goffi@goffi.org>
parents: 3497
diff changeset
97 ["urn:xmpp:pam:0"] = {
b443821399a3 docker (prosody-e2e): update Prosody's conf:
Goffi <goffi@goffi.org>
parents: 3497
diff changeset
98 jid = "pubsub.server1.test";
b443821399a3 docker (prosody-e2e): update Prosody's conf:
Goffi <goffi@goffi.org>
parents: 3497
diff changeset
99 },
b443821399a3 docker (prosody-e2e): update Prosody's conf:
Goffi <goffi@goffi.org>
parents: 3497
diff changeset
100 ["urn:xmpp:delegation:2:bare:disco#info:*"] = {
b443821399a3 docker (prosody-e2e): update Prosody's conf:
Goffi <goffi@goffi.org>
parents: 3497
diff changeset
101 jid = "pubsub.server1.test";
b443821399a3 docker (prosody-e2e): update Prosody's conf:
Goffi <goffi@goffi.org>
parents: 3497
diff changeset
102 },
b443821399a3 docker (prosody-e2e): update Prosody's conf:
Goffi <goffi@goffi.org>
parents: 3497
diff changeset
103 ["urn:xmpp:delegation:2:bare:disco#items:*"] = {
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
104 jid = "pubsub.server1.test";
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
105 },
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
106 }
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
107
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
108 VirtualHost "server2.test"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
109
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
110 VirtualHost "server3.test"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
111
4195
22cd3094cd1e docker (demo): fix starting + better UX:
Goffi <goffi@goffi.org>
parents: 3768
diff changeset
112 Component "chat.server1.test" "muc"
22cd3094cd1e docker (demo): fix starting + better UX:
Goffi <goffi@goffi.org>
parents: 3768
diff changeset
113 modules_enabled = {
22cd3094cd1e docker (demo): fix starting + better UX:
Goffi <goffi@goffi.org>
parents: 3768
diff changeset
114 "muc_mam";
22cd3094cd1e docker (demo): fix starting + better UX:
Goffi <goffi@goffi.org>
parents: 3768
diff changeset
115 "vcard";
22cd3094cd1e docker (demo): fix starting + better UX:
Goffi <goffi@goffi.org>
parents: 3768
diff changeset
116 }
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
117
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
118 Component "pubsub.server1.test"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
119 component_secret = "test_e2e"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
120 modules_enabled = {"privilege", "delegation"}
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
121
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
122 Component "proxy.server1.test" "proxy65"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
123
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
124 Component "files.server1.test"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
125 component_secret = "test_e2e"