Software /
code /
prosody
Annotate
spec/scansion/prosody.cfg.lua @ 12028:9ab202e942f5
MUC: Fix error origin JID in wrong argument position
Mistake introduced in cbe524ed1a6a. Removing because this is a query to
the bare JID where the error origin matches the resulting stanza 'from'.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 08 Dec 2021 21:06:16 +0100 |
parent | 11716:30f1e826cc95 |
child | 12116:efcf25ad5406 |
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 |
10730
76c9320f69a1
scansion: Mock time libraries during tests
Kim Alvefur <zash@zash.se>
parents:
10729
diff
changeset
|
3 -- Mock time functions to simplify tests |
76c9320f69a1
scansion: Mock time libraries during tests
Kim Alvefur <zash@zash.se>
parents:
10729
diff
changeset
|
4 function _G.os.time() |
76c9320f69a1
scansion: Mock time libraries during tests
Kim Alvefur <zash@zash.se>
parents:
10729
diff
changeset
|
5 return 1219439344; |
76c9320f69a1
scansion: Mock time libraries during tests
Kim Alvefur <zash@zash.se>
parents:
10729
diff
changeset
|
6 end |
76c9320f69a1
scansion: Mock time libraries during tests
Kim Alvefur <zash@zash.se>
parents:
10729
diff
changeset
|
7 package.preload["util.time"] = function () |
76c9320f69a1
scansion: Mock time libraries during tests
Kim Alvefur <zash@zash.se>
parents:
10729
diff
changeset
|
8 return { |
76c9320f69a1
scansion: Mock time libraries during tests
Kim Alvefur <zash@zash.se>
parents:
10729
diff
changeset
|
9 now = function () return 1219439344.1; end; |
76c9320f69a1
scansion: Mock time libraries during tests
Kim Alvefur <zash@zash.se>
parents:
10729
diff
changeset
|
10 monotonic = function () return 0.1; end; |
76c9320f69a1
scansion: Mock time libraries during tests
Kim Alvefur <zash@zash.se>
parents:
10729
diff
changeset
|
11 } |
76c9320f69a1
scansion: Mock time libraries during tests
Kim Alvefur <zash@zash.se>
parents:
10729
diff
changeset
|
12 end |
76c9320f69a1
scansion: Mock time libraries during tests
Kim Alvefur <zash@zash.se>
parents:
10729
diff
changeset
|
13 |
9294
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
14 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
|
15 |
11666
b92a3e166ac3
scansion tests: Allow specifying network backend via environment variable
Kim Alvefur <zash@zash.se>
parents:
11589
diff
changeset
|
16 network_backend = ENV_PROSODY_NETWORK_BACKEND or "epoll" |
11667
7417e61dfbe1
scansion tests: Allow specifying network settings via environment variable
Kim Alvefur <zash@zash.se>
parents:
11666
diff
changeset
|
17 network_settings = require"util.json".decode(ENV_PROSODY_NETWORK_SETTINGS or "{}") |
9294
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
18 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
19 modules_enabled = { |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
20 -- Generally required |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
21 "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
|
22 "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
|
23 --"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
|
24 --"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
|
25 "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
|
26 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
27 -- 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
|
28 "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
|
29 "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
|
30 "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
|
31 "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
|
32 "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
|
33 "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
|
34 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
35 -- 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
|
36 "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
|
37 "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
|
38 "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
|
39 "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
|
40 "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
|
41 "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
|
42 --"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
|
43 |
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
|
44 -- 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
|
45 --"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
|
46 --"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
|
47 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
48 -- HTTP modules |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
49 --"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
|
50 --"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
|
51 --"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
|
52 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
53 -- 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
|
54 --"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
|
55 --"groups"; -- Shared roster support |
10848
7fd8976d47d7
scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
10732
diff
changeset
|
56 "server_contact_info"; -- Publish contact information for this service |
9294
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
57 --"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
|
58 --"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
|
59 --"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
|
60 --"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
|
61 --"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
|
62 --"proxy65"; -- Enables a file transfer proxy service which clients behind NAT can use |
10732
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
10730
diff
changeset
|
63 "lastactivity"; |
11036
79e410cd7f6e
mod_external_services: XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
11010
diff
changeset
|
64 "external_services"; |
9622
269c6df1f0fb
spec/scansion/prosody.cfg.lua: Add comment about mod_scansion_record
Kim Alvefur <zash@zash.se>
parents:
9620
diff
changeset
|
65 |
269c6df1f0fb
spec/scansion/prosody.cfg.lua: Add comment about mod_scansion_record
Kim Alvefur <zash@zash.se>
parents:
9620
diff
changeset
|
66 -- Useful for testing |
269c6df1f0fb
spec/scansion/prosody.cfg.lua: Add comment about mod_scansion_record
Kim Alvefur <zash@zash.se>
parents:
9620
diff
changeset
|
67 --"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
|
68 } |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
69 |
10848
7fd8976d47d7
scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
10732
diff
changeset
|
70 contact_info = { |
7fd8976d47d7
scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
10732
diff
changeset
|
71 abuse = { "mailto:abuse@localhost", "xmpp:abuse@localhost" }; |
7fd8976d47d7
scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
10732
diff
changeset
|
72 admin = { "mailto:admin@localhost", "xmpp:admin@localhost" }; |
7fd8976d47d7
scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
10732
diff
changeset
|
73 feedback = { "http://localhost/feedback.html", "mailto:feedback@localhost", "xmpp:feedback@localhost" }; |
7fd8976d47d7
scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
10732
diff
changeset
|
74 sales = { "xmpp:sales@localhost" }; |
7fd8976d47d7
scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
10732
diff
changeset
|
75 security = { "xmpp:security@localhost" }; |
11010
6b27cb706b89
mod_server_contact_info: Add status-addresses field
Kim Alvefur <zash@zash.se>
parents:
11001
diff
changeset
|
76 status = { "gopher://status.localhost" }; |
10848
7fd8976d47d7
scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
10732
diff
changeset
|
77 support = { "https://localhost/support.html", "xmpp:support@localhost" }; |
7fd8976d47d7
scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
10732
diff
changeset
|
78 } |
7fd8976d47d7
scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
10732
diff
changeset
|
79 |
11036
79e410cd7f6e
mod_external_services: XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
11010
diff
changeset
|
80 external_service_host = "default.example" |
79e410cd7f6e
mod_external_services: XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
11010
diff
changeset
|
81 external_service_port = 9876 |
79e410cd7f6e
mod_external_services: XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
11010
diff
changeset
|
82 external_service_secret = "<secret>" |
79e410cd7f6e
mod_external_services: XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
11010
diff
changeset
|
83 external_services = { |
79e410cd7f6e
mod_external_services: XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
11010
diff
changeset
|
84 {type = "stun"; transport = "udp"}; |
79e410cd7f6e
mod_external_services: XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
11010
diff
changeset
|
85 {type = "turn"; transport = "udp"; secret = true}; |
79e410cd7f6e
mod_external_services: XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
11010
diff
changeset
|
86 {type = "turn"; transport = "udp"; secret = "foo"}; |
79e410cd7f6e
mod_external_services: XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
11010
diff
changeset
|
87 {type = "ftp"; transport = "tcp"; port = 2121; username = "john"; password = "password"}; |
79e410cd7f6e
mod_external_services: XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
11010
diff
changeset
|
88 {type = "ftp"; transport = "tcp"; host = "ftp.example.com"; port = 21; username = "john"; password = "password"}; |
79e410cd7f6e
mod_external_services: XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
11010
diff
changeset
|
89 } |
79e410cd7f6e
mod_external_services: XEP-0215: External Service Discovery
Kim Alvefur <zash@zash.se>
parents:
11010
diff
changeset
|
90 |
10467
600d4cf41ce1
tests: Disable s2s in scansion tests
Kim Alvefur <zash@zash.se>
parents:
10238
diff
changeset
|
91 modules_disabled = { |
600d4cf41ce1
tests: Disable s2s in scansion tests
Kim Alvefur <zash@zash.se>
parents:
10238
diff
changeset
|
92 "s2s"; |
600d4cf41ce1
tests: Disable s2s in scansion tests
Kim Alvefur <zash@zash.se>
parents:
10238
diff
changeset
|
93 } |
11588
1d59fd55d2f6
scansion: Silence an error from cert indexer due to missing certs dir
Kim Alvefur <zash@zash.se>
parents:
11585
diff
changeset
|
94 |
1d59fd55d2f6
scansion: Silence an error from cert indexer due to missing certs dir
Kim Alvefur <zash@zash.se>
parents:
11585
diff
changeset
|
95 -- TLS is not used during the test, set certificate dir to the config directory |
1d59fd55d2f6
scansion: Silence an error from cert indexer due to missing certs dir
Kim Alvefur <zash@zash.se>
parents:
11585
diff
changeset
|
96 -- (spec/scansion) to silence an error from the certificate indexer |
11589
fb854431d6c4
scansion: Really silence the certificates dir error
Kim Alvefur <zash@zash.se>
parents:
11588
diff
changeset
|
97 certificates = "." |
9294
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
98 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
99 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
|
100 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
101 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
|
102 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
|
103 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
104 authentication = "insecure" |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
105 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
|
106 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
107 storage = "memory" |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
108 |
9729
4f6413ec08a8
mod_mam: Add test for JID normalization in prefs (see #1275)
Kim Alvefur <zash@zash.se>
parents:
9622
diff
changeset
|
109 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
|
110 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
111 -- 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
|
112 --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
|
113 --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
|
114 --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
|
115 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
116 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
117 -- Logging configuration |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
118 -- For advanced logging see https://prosody.im/doc/logging |
11251
520b09bbbad5
scansion: Allow specifying a logfile for prosody via environment
Kim Alvefur <zash@zash.se>
parents:
11036
diff
changeset
|
119 log = {"*console",debug = ENV_PROSODY_LOGFILE} |
9294
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
120 |
9296
9948e267254b
spec/scansion/prosody.cfg.lua: Add pidfile option so Prosody can be daemonized
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
121 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
|
122 |
9294
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
123 VirtualHost "localhost" |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
124 |
11001
09b74aba015d
scansion/prosody.cfg: Fix typo
Kim Alvefur <zash@zash.se>
parents:
10942
diff
changeset
|
125 hide_os_type = true -- absence tested for in version.scs |
10729
dbce2b94a7eb
mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
10630
diff
changeset
|
126 |
9294
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
127 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
|
128 storage = "memory" |
11583
4ee7a6a8753e
mod_server_contact_info: Apply JID normalization
Kim Alvefur <zash@zash.se>
parents:
11315
diff
changeset
|
129 admins = { "Admin@localhost" } |
10942
008f46a92520
scansion tests: Enable mod_muc_mam during tests (expect breakage)
Kim Alvefur <zash@zash.se>
parents:
10917
diff
changeset
|
130 modules_enabled = { |
008f46a92520
scansion tests: Enable mod_muc_mam during tests (expect breakage)
Kim Alvefur <zash@zash.se>
parents:
10917
diff
changeset
|
131 "muc_mam"; |
008f46a92520
scansion tests: Enable mod_muc_mam during tests (expect breakage)
Kim Alvefur <zash@zash.se>
parents:
10917
diff
changeset
|
132 } |
008f46a92520
scansion tests: Enable mod_muc_mam during tests (expect breakage)
Kim Alvefur <zash@zash.se>
parents:
10917
diff
changeset
|
133 |
9294
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
134 |
31c02b3109e1
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
135 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
|
136 storage = "memory" |
11716
30f1e826cc95
scansion tests: Enable 'expose_publisher' since we test for it
Kim Alvefur <zash@zash.se>
parents:
11667
diff
changeset
|
137 expose_publisher = true |
11309
b59aed75dc5e
mod_http_file_share: Let's write another XEP-0363 implementation
Kim Alvefur <zash@zash.se>
parents:
11251
diff
changeset
|
138 |
b59aed75dc5e
mod_http_file_share: Let's write another XEP-0363 implementation
Kim Alvefur <zash@zash.se>
parents:
11251
diff
changeset
|
139 Component "upload.localhost" "http_file_share" |
11314
7c8b02c5a335
mod_http_file_share: Add file size limit (default 10M)
Kim Alvefur <zash@zash.se>
parents:
11309
diff
changeset
|
140 http_file_share_size_limit = 10000000 |
11315
c52fcea39c8e
mod_http_file_share: Add file type filter
Kim Alvefur <zash@zash.se>
parents:
11314
diff
changeset
|
141 http_file_share_allowed_file_types = { "text/plain", "image/*" } |