summaryrefslogtreecommitdiffstats
path: root/test/functional/configs/plugins.conf
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2021-05-04 13:48:37 +0200
committerAndrew Lewis <nerf@judo.za.org>2021-05-04 13:48:37 +0200
commitdb4da2c22d159d1a6450b9447ad90e1795e5c535 (patch)
treee2c05c4e4d0668e02a7a5e2b279c5d76d1403b90 /test/functional/configs/plugins.conf
parent6244d64b43baa240d63528849a7a47b3f32eccc3 (diff)
downloadrspamd-db4da2c22d159d1a6450b9447ad90e1795e5c535.tar.gz
rspamd-db4da2c22d159d1a6450b9447ad90e1795e5c535.zip
[Test] Use lupa for templating rspamd configs
Diffstat (limited to 'test/functional/configs/plugins.conf')
-rw-r--r--test/functional/configs/plugins.conf21
1 files changed, 10 insertions, 11 deletions
diff --git a/test/functional/configs/plugins.conf b/test/functional/configs/plugins.conf
index 35a2ce347..803eccefe 100644
--- a/test/functional/configs/plugins.conf
+++ b/test/functional/configs/plugins.conf
@@ -1,8 +1,8 @@
options = {
filters = [ "dkim", "regexp"]
- url_tld = "${URL_TLD}"
- pidfile = "${TMPDIR}/rspamd.pid"
- lua_path = "${INSTALLROOT}/share/rspamd/lib/?.lua"
+ url_tld = "{= env.URL_TLD =}"
+ pidfile = "{= env.TMPDIR =}/rspamd.pid"
+ lua_path = "{= env.INSTALLROOT =}/share/rspamd/lib/?.lua"
explicit_modules = ["settings", "bayes_expiry"];
dns {
nameserver = ["8.8.8.8", "8.8.4.4"];
@@ -732,7 +732,7 @@ options = {
logging = {
type = "file",
level = "debug"
- filename = "${TMPDIR}/rspamd.log"
+ filename = "{= env.TMPDIR =}/rspamd.log"
log_usec = true;
}
metric = {
@@ -745,21 +745,20 @@ metric = {
}
worker {
type = normal
- bind_socket = ${LOCAL_ADDR}:${PORT_NORMAL}
+ bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_NORMAL =}"
count = 1
task_timeout = 10s;
}
worker {
type = controller
- bind_socket = ${LOCAL_ADDR}:${PORT_CONTROLLER}
+ bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_CONTROLLER =}"
count = 1
secure_ip = ["127.0.0.1", "::1"];
- stats_path = "${TMPDIR}/stats.ucl"
+ stats_path = "{= env.TMPDIR =}/stats.ucl"
}
modules {
- path = "${TESTDIR}/../../src/plugins/lua/"
+ path = "{= env.TESTDIR =}/../../src/plugins/lua/"
}
spf {}
-lua = "${TESTDIR}/lua/test_coverage.lua";
-lua = "${INSTALLROOT}/share/rspamd/rules/rspamd.lua"
-${PLUGIN_CONFIG}
+lua = "{= env.TESTDIR =}/lua/test_coverage.lua";
+lua = "{= env.INSTALLROOT =}/share/rspamd/rules/rspamd.lua";