diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-08-09 13:58:33 +0100 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-08-09 13:58:33 +0100 |
commit | bd01177c1364399ef29ca6671669a271af967998 (patch) | |
tree | 1cd23721c7ab3c95afde01d3b4007078e208133c /test/functional/configs/proxy.conf | |
parent | 8e2d181f6df9533a2cbb02e6dffaca21647ea14e (diff) | |
download | rspamd-bd01177c1364399ef29ca6671669a271af967998.tar.gz rspamd-bd01177c1364399ef29ca6671669a271af967998.zip |
[Test] Add simple test for proxying
Diffstat (limited to 'test/functional/configs/proxy.conf')
-rw-r--r-- | test/functional/configs/proxy.conf | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/configs/proxy.conf b/test/functional/configs/proxy.conf new file mode 100644 index 000000000..5f40d1593 --- /dev/null +++ b/test/functional/configs/proxy.conf @@ -0,0 +1,18 @@ +options = { + filters = "spf" + pidfile = "${TMPDIR}/rspamd.pid" +} +logging = { + type = "file", + level = "debug" + filename = "${TMPDIR}/rspamd.log" +} +worker "rspamd_proxy" { + bind_socket = "${LOCAL_ADDR}:${PORT_PROXY}"; + upstream { + name = "${LOCAL_ADDR}"; + default = yes; + hosts = "${LOCAL_ADDR}:${PORT_NORMAL}"; + } + count = 1; +} |