Annotate

spec/scansion/prosody.cfg.lua @ 10467:600d4cf41ce1

tests: Disable s2s in scansion tests These are all c2s tests, no need to have s2s enabled.
author Kim Alvefur <zash@zash.se>
date Sat, 30 Nov 2019 14:00:13 +0100
parent 10238:9cfefd57da05
child 10630:5949006de35e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9294
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
1 --luacheck: ignore
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
2
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
3 admins = { "admin@localhost" }
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
4
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
5 use_libevent = true
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
6
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
7 modules_enabled = {
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
8 -- Generally required
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
9 "roster"; -- Allow users to have a roster. Recommended ;)
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
10 "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
10238
9cfefd57da05 tests: Disable TLS in scansion tests
Kim Alvefur <zash@zash.se>
parents: 9730
diff changeset
11 --"tls"; -- Add support for secure TLS on c2s/s2s connections
10467
600d4cf41ce1 tests: Disable s2s in scansion tests
Kim Alvefur <zash@zash.se>
parents: 10238
diff changeset
12 --"dialback"; -- s2s dialback support
9294
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
13 "disco"; -- Service discovery
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
14
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
15 -- Not essential, but recommended
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
16 "carbons"; -- Keep multiple clients in sync
9700
f540bb378501 spec/scansion/prosody.cfg.lua: Update a comment from prosody.cfg.lua.dist for easier comparisons
Kim Alvefur <zash@zash.se>
parents: 9622
diff changeset
17 "pep"; -- Enables users to publish their avatar, mood, activity, playing music and more
9294
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
18 "private"; -- Private XML storage (for room bookmarks, etc.)
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
19 "blocklist"; -- Allow users to block communications with other users
9701
7baac5f0c3a5 spec/scansion/prosody.cfg.lua: Replace mod_vcard with mod_vcard4 and mod_vcard_legacy as in default config
Kim Alvefur <zash@zash.se>
parents: 9700
diff changeset
20 "vcard4"; -- User profiles (stored in PEP)
7baac5f0c3a5 spec/scansion/prosody.cfg.lua: Replace mod_vcard with mod_vcard4 and mod_vcard_legacy as in default config
Kim Alvefur <zash@zash.se>
parents: 9700
diff changeset
21 "vcard_legacy"; -- Conversion between legacy vCard and PEP Avatar, vcard
9294
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
22
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
23 -- Nice to have
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
24 "version"; -- Replies to server version requests
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
25 "uptime"; -- Report how long server has been running
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
26 "time"; -- Let others know the time here on this server
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
27 "ping"; -- Replies to XMPP pings with pongs
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
28 "register"; -- Allow users to register on this server using a client and change passwords
9729
4f6413ec08a8 mod_mam: Add test for JID normalization in prefs (see #1275)
Kim Alvefur <zash@zash.se>
parents: 9622
diff changeset
29 "mam"; -- Store messages in an archive and allow users to access it
9702
3a1b07d8c314 spec/scansion/prosody.cfg.lua: Add remaining modules listened in prosody.cfg.lua.dist for easier comparisons
Kim Alvefur <zash@zash.se>
parents: 9701
diff changeset
30 --"csi_simple"; -- Simple Mobile optimizations
3a1b07d8c314 spec/scansion/prosody.cfg.lua: Add remaining modules listened in prosody.cfg.lua.dist for easier comparisons
Kim Alvefur <zash@zash.se>
parents: 9701
diff changeset
31
3a1b07d8c314 spec/scansion/prosody.cfg.lua: Add remaining modules listened in prosody.cfg.lua.dist for easier comparisons
Kim Alvefur <zash@zash.se>
parents: 9701
diff changeset
32 -- Admin interfaces
3a1b07d8c314 spec/scansion/prosody.cfg.lua: Add remaining modules listened in prosody.cfg.lua.dist for easier comparisons
Kim Alvefur <zash@zash.se>
parents: 9701
diff changeset
33 --"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
3a1b07d8c314 spec/scansion/prosody.cfg.lua: Add remaining modules listened in prosody.cfg.lua.dist for easier comparisons
Kim Alvefur <zash@zash.se>
parents: 9701
diff changeset
34 --"admin_telnet"; -- Opens telnet console interface on localhost port 5582
9294
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
35
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
36 -- HTTP modules
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
37 --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
38 --"websocket"; -- XMPP over WebSockets
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
39 --"http_files"; -- Serve static files from a directory over HTTP
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
40
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
41 -- Other specific functionality
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
42 --"limits"; -- Enable bandwidth limiting for XMPP connections
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
43 --"groups"; -- Shared roster support
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
44 --"server_contact_info"; -- Publish contact information for this service
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
45 --"announce"; -- Send announcement to all online users
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
46 --"welcome"; -- Welcome users who register accounts
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
47 --"watchregistrations"; -- Alert admins of registrations
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
48 --"motd"; -- Send a message to users when they log in
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
49 --"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
50 --"proxy65"; -- Enables a file transfer proxy service which clients behind NAT can use
9622
269c6df1f0fb spec/scansion/prosody.cfg.lua: Add comment about mod_scansion_record
Kim Alvefur <zash@zash.se>
parents: 9620
diff changeset
51
269c6df1f0fb spec/scansion/prosody.cfg.lua: Add comment about mod_scansion_record
Kim Alvefur <zash@zash.se>
parents: 9620
diff changeset
52 -- Useful for testing
269c6df1f0fb spec/scansion/prosody.cfg.lua: Add comment about mod_scansion_record
Kim Alvefur <zash@zash.se>
parents: 9620
diff changeset
53 --"scansion_record"; -- Records things that happen in scansion test case format
9294
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
54 }
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
55
10467
600d4cf41ce1 tests: Disable s2s in scansion tests
Kim Alvefur <zash@zash.se>
parents: 10238
diff changeset
56 modules_disabled = {
600d4cf41ce1 tests: Disable s2s in scansion tests
Kim Alvefur <zash@zash.se>
parents: 10238
diff changeset
57 "s2s";
600d4cf41ce1 tests: Disable s2s in scansion tests
Kim Alvefur <zash@zash.se>
parents: 10238
diff changeset
58 }
9294
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
59 certificate = "certs"
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
60
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
61 allow_registration = false
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
62
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
63 c2s_require_encryption = false
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
64 allow_unencrypted_plain_auth = true
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
65
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
66 authentication = "insecure"
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
67 insecure_open_authentication = "Yes please, I know what I'm doing!"
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
68
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
69 storage = "memory"
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
70
9729
4f6413ec08a8 mod_mam: Add test for JID normalization in prefs (see #1275)
Kim Alvefur <zash@zash.se>
parents: 9622
diff changeset
71 mam_smart_enable = true
9294
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
72
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
73 -- For the "sql" backend, you can uncomment *one* of the below to configure:
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
74 --sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
75 --sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
76 --sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
77
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
78
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
79 -- Logging configuration
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
80 -- For advanced logging see https://prosody.im/doc/logging
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
81 log = "*console"
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
82
9297
8680a874f483 spec/scansion/prosody.cfg.lua: daemonize by default
Matthew Wild <mwild1@gmail.com>
parents: 9296
diff changeset
83 daemonize = true
9296
9948e267254b spec/scansion/prosody.cfg.lua: Add pidfile option so Prosody can be daemonized
Matthew Wild <mwild1@gmail.com>
parents: 9294
diff changeset
84 pidfile = "prosody.pid"
9948e267254b spec/scansion/prosody.cfg.lua: Add pidfile option so Prosody can be daemonized
Matthew Wild <mwild1@gmail.com>
parents: 9294
diff changeset
85
9294
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
86 VirtualHost "localhost"
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
87
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
88 Component "conference.localhost" "muc"
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
89 storage = "memory"
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
90
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
91 Component "pubsub.localhost" "pubsub"
31c02b3109e1 spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
92 storage = "memory"