summaryrefslogtreecommitdiffstats
path: root/test/functional/configs/proxy.conf
blob: ff31eaea0fa9614db8020eba6a5a1a36629bd045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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";