Mercurial > libervia-backend
annotate docker/prosody_e2e/prosody.cfg.lua @ 3489:d71a163c0861
bridge (pb): connection can be set to used either UNIX socket or TCP socket:
all settings are to be put in `[DEFAULT]` section
- `bridge_pb_connection_type` can be set to `unix_socket` or `socket`
- for `socket`, `bridge_pb_host` and `bridge_pb_port` can be specified
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 21 Mar 2021 22:00:55 +0100 |
parents | 129cc3e16825 |
children |
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 | |
42 registration_whitelist = { socket.dns.toip("sat") } | |
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 = { | |
62 key = "/usr/share/sat/certificates/server1.test-key.pem"; | |
63 certificate = "/usr/share/sat/certificates/server1.test.pem"; | |
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" |