Mercurial > libervia-backend
comparison docker/prosody_e2e/prosody.cfg.lua @ 3381:127dde80a0a5
docker: dockers images, first draft:
This patch introduce new docker images, replacing the unmaintained ones which were in
sat_docs.
Images + docker-compose files are provided to use SàT backend and Libervia, but also to
integrate and configure Prosody and SàT PubSub to run end-to-end tests.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 19 Oct 2020 09:30:45 +0200 |
parents | |
children | 129cc3e16825 |
comparison
equal
deleted
inserted
replaced
3380:4dbf9fcbf26d | 3381:127dde80a0a5 |
---|---|
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"; | |
35 } | |
36 | |
37 modules_disabled = { | |
38 } | |
39 | |
40 allow_registration = true | |
41 registration_whitelist = { socket.dns.toip("sat") } | |
42 whitelist_registration_only = true | |
43 | |
44 c2s_require_encryption = true | |
45 s2s_require_encryption = true | |
46 s2s_secure_auth = false | |
47 | |
48 pidfile = "/var/run/prosody/prosody.pid" | |
49 | |
50 authentication = "internal_hashed" | |
51 | |
52 archive_expires_after = "1d" | |
53 | |
54 log = { | |
55 {levels = {min = "info"}, to = "console"}; | |
56 } | |
57 | |
58 certificates = "certs" | |
59 | |
60 ssl = { | |
61 key = "/usr/share/sat/certificates/server1.test-key.pem"; | |
62 certificate = "/usr/share/sat/certificates/server1.test.pem"; | |
63 } | |
64 | |
65 component_interface = "*" | |
66 | |
67 VirtualHost "server1.test" | |
68 privileged_entities = { | |
69 ["pubsub.server1.test"] = { | |
70 roster = "get"; | |
71 message = "outgoing"; | |
72 presence = "roster"; | |
73 }, | |
74 } | |
75 | |
76 delegations = { | |
77 ["urn:xmpp:mam:2"] = { | |
78 filtering = {"node"}; | |
79 jid = "pubsub.server1.test"; | |
80 }, | |
81 ["http://jabber.org/protocol/pubsub"] = { | |
82 jid = "pubsub.server1.test"; | |
83 }, | |
84 ["http://jabber.org/protocol/pubsub#owner"] = { | |
85 jid = "pubsub.server1.test"; | |
86 }, | |
87 ["https://salut-a-toi/protocol/schema:0"] = { | |
88 jid = "pubsub.server1.test"; | |
89 }, | |
90 ["http://jabber.org/protocol/disco#items:*"] = { | |
91 jid = "pubsub.server1.test"; | |
92 }, | |
93 ["https://salut-a-toi.org/spec/pubsub_admin:0"] = { | |
94 jid = "pubsub.server1.test"; | |
95 }, | |
96 } | |
97 | |
98 VirtualHost "server2.test" | |
99 | |
100 VirtualHost "server3.test" | |
101 | |
102 -- Component "muc.server1.test" "muc" | |
103 -- modules_enabled = { | |
104 -- "muc_mam"; | |
105 -- "vcard"; | |
106 -- } | |
107 | |
108 Component "pubsub.server1.test" | |
109 component_secret = "test_e2e" | |
110 modules_enabled = {"privilege", "delegation"} | |
111 | |
112 Component "proxy.server1.test" "proxy65" | |
113 | |
114 Component "files.server1.test" | |
115 component_secret = "test_e2e" |