Mercurial > libervia-backend
annotate docker/prosody-e2e/prosody.cfg.lua @ 3594:d5116197e403
migration: script to create pubsub caching tables
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 29 Jul 2021 22:50:57 +0200 |
parents | 73e04040d577 |
children | b443821399a3 |
rev | line source |
---|---|
3381 | 1 -- Prosody XMPP Server Configuration |
2 -- Adapted for SàT e2e tests | |
3 | |
4 local socket = require "socket" | |
5 | |
6 daemonize = false; | |
7 admins = { } | |
8 | |
9 plugin_paths = { "/usr/local/share/prosody/modules" } | |
10 | |
11 modules_enabled = { | |
12 "admin_adhoc"; | |
13 "blocklist"; | |
14 "carbons"; | |
15 "csi"; | |
16 "csi_simple"; | |
17 "delegation"; | |
18 "dialback"; | |
19 "disco"; | |
20 "mam"; | |
21 "pep"; | |
22 "ping"; | |
23 "private"; | |
24 "privilege"; | |
25 "register"; | |
26 "roster"; | |
27 "saslauth"; | |
28 "smacks"; | |
29 "time"; | |
30 "tls"; | |
31 "uptime"; | |
32 "vcard4"; | |
33 "vcard_legacy"; | |
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 | 36 } |
37 | |
38 modules_disabled = { | |
39 } | |
40 | |
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 | 43 whitelist_registration_only = true |
44 | |
45 c2s_require_encryption = true | |
46 s2s_require_encryption = true | |
47 s2s_secure_auth = false | |
48 | |
49 pidfile = "/var/run/prosody/prosody.pid" | |
50 | |
51 authentication = "internal_hashed" | |
52 | |
53 archive_expires_after = "1d" | |
54 | |
55 log = { | |
56 {levels = {min = "info"}, to = "console"}; | |
57 } | |
58 | |
59 certificates = "certs" | |
60 | |
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 | 64 } |
65 | |
66 component_interface = "*" | |
67 | |
68 VirtualHost "server1.test" | |
69 privileged_entities = { | |
70 ["pubsub.server1.test"] = { | |
71 roster = "get"; | |
72 message = "outgoing"; | |
73 presence = "roster"; | |
74 }, | |
75 } | |
76 | |
77 delegations = { | |
78 ["urn:xmpp:mam:2"] = { | |
79 filtering = {"node"}; | |
80 jid = "pubsub.server1.test"; | |
81 }, | |
82 ["http://jabber.org/protocol/pubsub"] = { | |
83 jid = "pubsub.server1.test"; | |
84 }, | |
85 ["http://jabber.org/protocol/pubsub#owner"] = { | |
86 jid = "pubsub.server1.test"; | |
87 }, | |
88 ["https://salut-a-toi/protocol/schema:0"] = { | |
89 jid = "pubsub.server1.test"; | |
90 }, | |
91 ["http://jabber.org/protocol/disco#items:*"] = { | |
92 jid = "pubsub.server1.test"; | |
93 }, | |
94 ["https://salut-a-toi.org/spec/pubsub_admin:0"] = { | |
95 jid = "pubsub.server1.test"; | |
96 }, | |
97 } | |
98 | |
99 VirtualHost "server2.test" | |
100 | |
101 VirtualHost "server3.test" | |
102 | |
103 -- Component "muc.server1.test" "muc" | |
104 -- modules_enabled = { | |
105 -- "muc_mam"; | |
106 -- "vcard"; | |
107 -- } | |
108 | |
109 Component "pubsub.server1.test" | |
110 component_secret = "test_e2e" | |
111 modules_enabled = {"privilege", "delegation"} | |
112 | |
113 Component "proxy.server1.test" "proxy65" | |
114 | |
115 Component "files.server1.test" | |
116 component_secret = "test_e2e" |