summaryrefslogtreecommitdiffstats
path: root/test/functional/configs
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-08-09 13:58:33 +0100
committerAndrew Lewis <nerf@judo.za.org>2016-08-09 13:58:33 +0100
commitbd01177c1364399ef29ca6671669a271af967998 (patch)
tree1cd23721c7ab3c95afde01d3b4007078e208133c /test/functional/configs
parent8e2d181f6df9533a2cbb02e6dffaca21647ea14e (diff)
downloadrspamd-bd01177c1364399ef29ca6671669a271af967998.tar.gz
rspamd-bd01177c1364399ef29ca6671669a271af967998.zip
[Test] Add simple test for proxying
Diffstat (limited to 'test/functional/configs')
-rw-r--r--test/functional/configs/proxy.conf18
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;
+}