Comparison

spec/scansion/prosody.cfg.lua @ 11667:7417e61dfbe1

scansion tests: Allow specifying network settings via environment variable Allows testing e.g. opportunistic writes or other settings easily in CI or otherwise without editing the config file. make integration-test PROSODY_NETWORK_SETTINGS='{"opportunistic_writes":true}'
author Kim Alvefur <zash@zash.se>
date Sun, 11 Jul 2021 10:09:10 +0200
parent 11666:b92a3e166ac3
child 11716:30f1e826cc95
comparison
equal deleted inserted replaced
11666:b92a3e166ac3 11667:7417e61dfbe1
12 end 12 end
13 13
14 admins = { "admin@localhost" } 14 admins = { "admin@localhost" }
15 15
16 network_backend = ENV_PROSODY_NETWORK_BACKEND or "epoll" 16 network_backend = ENV_PROSODY_NETWORK_BACKEND or "epoll"
17 network_settings = { 17 network_settings = require"util.json".decode(ENV_PROSODY_NETWORK_SETTINGS or "{}")
18 }
19 18
20 modules_enabled = { 19 modules_enabled = {
21 -- Generally required 20 -- Generally required
22 "roster"; -- Allow users to have a roster. Recommended ;) 21 "roster"; -- Allow users to have a roster. Recommended ;)
23 "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in. 22 "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.