diff options
author | Andrew Lewis <nerf@judo.za.org> | 2021-05-04 13:48:37 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2021-05-04 13:48:37 +0200 |
commit | db4da2c22d159d1a6450b9447ad90e1795e5c535 (patch) | |
tree | e2c05c4e4d0668e02a7a5e2b279c5d76d1403b90 /test/functional/configs/trivial.conf | |
parent | 6244d64b43baa240d63528849a7a47b3f32eccc3 (diff) | |
download | rspamd-db4da2c22d159d1a6450b9447ad90e1795e5c535.tar.gz rspamd-db4da2c22d159d1a6450b9447ad90e1795e5c535.zip |
[Test] Use lupa for templating rspamd configs
Diffstat (limited to 'test/functional/configs/trivial.conf')
-rw-r--r-- | test/functional/configs/trivial.conf | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/functional/configs/trivial.conf b/test/functional/configs/trivial.conf index 5d4aa0af6..97e3a301e 100644 --- a/test/functional/configs/trivial.conf +++ b/test/functional/configs/trivial.conf @@ -1,8 +1,8 @@ options = { filters = ["spf", "dkim", "regexp"] - url_tld = "${TESTDIR}/../lua/unit/test_tld.dat" - pidfile = "${TMPDIR}/rspamd.pid"; - lua_path = "${INSTALLROOT}/share/rspamd/lib/?.lua"; + url_tld = "{= env.TESTDIR =}/../lua/unit/test_tld.dat" + pidfile = "{= env.TMPDIR =}/rspamd.pid"; + lua_path = "{= env.INSTALLROOT =}/share/rspamd/lib/?.lua"; dns { nameserver = ["8.8.8.8", "8.8.4.4"]; retransmits = 10; @@ -13,7 +13,7 @@ logging = { log_urls = true; type = "file", level = "debug" - filename = "${TMPDIR}/rspamd.log"; + filename = "{= env.TMPDIR =}/rspamd.log"; log_usec = true; } metric = { @@ -26,25 +26,25 @@ metric = { worker { type = normal - bind_socket = ${LOCAL_ADDR}:${PORT_NORMAL} + bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_NORMAL =}" count = 1 keypair { - pubkey = "${KEY_PUB1}"; - privkey = "${KEY_PVT1}"; + pubkey = "{= env.KEY_PUB1 =}"; + privkey = "{= env.KEY_PVT1 =}"; } 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/" } -lua = "${INSTALLROOT}/share/rspamd/rules/rspamd.lua" +lua = "{= env.INSTALLROOT =}/share/rspamd/rules/rspamd.lua" |