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/stats.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/stats.conf')
-rw-r--r-- | test/functional/configs/stats.conf | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/test/functional/configs/stats.conf b/test/functional/configs/stats.conf index f79729f39..bfa39b426 100644 --- a/test/functional/configs/stats.conf +++ b/test/functional/configs/stats.conf @@ -1,7 +1,7 @@ options = { filters = ["spf", "dkim", "regexp"] - url_tld = "${TESTDIR}/../lua/unit/test_tld.dat" - pidfile = "${TMPDIR}/rspamd.pid" + url_tld = "{= env.TESTDIR =}/../lua/unit/test_tld.dat" + pidfile = "{= env.TMPDIR =}/rspamd.pid" dns { retransmits = 10; timeout = 2s; @@ -15,7 +15,7 @@ options = { logging = { type = "file", level = "debug" - filename = "${TMPDIR}/rspamd.log" + filename = "{= env.TMPDIR =}/rspamd.log" } metric = { name = "default", @@ -27,51 +27,51 @@ 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 = 60s; } worker { type = controller - bind_socket = ${LOCAL_ADDR}:${PORT_CONTROLLER} + bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_CONTROLLER =}" count = 1 keypair { - pubkey = "${KEY_PUB1}"; - privkey = "${KEY_PVT1}"; + pubkey = "{= env.KEY_PUB1 =}"; + privkey = "{= env.KEY_PVT1 =}"; } secure_ip = ["127.0.0.1", "::1"]; - stats_path = "${TMPDIR}/stats.ucl"; + stats_path = "{= env.TMPDIR =}/stats.ucl"; } classifier { languages_enabled = true; tokenizer { name = "osb"; - ${STATS_HASH} - ${STATS_KEY} + hash = {= env.STATS_HASH =}; + key = {= env.STATS_KEY =}; } - backend = ${STATS_BACKEND} + backend = "{= env.STATS_BACKEND =}"; statfile { spam = true; symbol = BAYES_SPAM; size = 1M; - ${REDIS_SERVER} + server = {= env.REDIS_SERVER =} } statfile { spam = false; symbol = BAYES_HAM; size = 1M; - ${REDIS_SERVER} + server = {= env.REDIS_SERVER =} } cache { - ${REDIS_SERVER} + server = {= env.REDIS_SERVER =} } } -lua = "${TESTDIR}/lua/test_coverage.lua"; +lua = "{= env.TESTDIR =}/lua/test_coverage.lua"; settings {} |