diff options
Diffstat (limited to 'test/functional/configs/proxy.conf')
-rw-r--r-- | test/functional/configs/proxy.conf | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/functional/configs/proxy.conf b/test/functional/configs/proxy.conf new file mode 100644 index 0000000..ff31eae --- /dev/null +++ b/test/functional/configs/proxy.conf @@ -0,0 +1,26 @@ +options = { + filters = ["spf", "dkim", "regexp"] + url_tld = "{= env.URL_TLD =}" + 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; + timeout = 2s; + } +} +logging = { + type = "file", + level = "debug" + filename = "{= env.TMPDIR =}/rspamd.log" +} +worker "rspamd_proxy" { + bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_PROXY =}"; + upstream { + name = "{= env.LOCAL_ADDR =}"; + default = yes; + hosts = "{= env.LOCAL_ADDR =}:{= env.PORT_NORMAL =}"; + } + count = 1; +} +lua = "{= env.TESTDIR =}/lua/test_coverage.lua"; |