rspamd/test/functional/configs/stats.conf
2015-07-27 17:11:12 +01:00

62 lines
1.1 KiB
Plaintext

options = {
filters = ["spf", "dkim", "regexp"]
url_tld = "${TESTDIR}/../lua/unit/test_tld.dat"
pidfile = "${TMPDIR}/rspamd.pid"
}
logging = {
type = "file",
level = "debug"
filename = "${TMPDIR}/rspamd.log"
}
metric = {
name = "default",
actions = {
reject = 100500,
}
unknown_weight = 1
}
worker {
type = normal
bind_socket = localhost:56789
count = 1
keypair {
pubkey = "y3ms1knmetxf8gdeixkf74b6tbpxqugmxzqksnjodiqei7tksyty";
privkey = "oswsyqndpj3swqa4yqm4yzoyih83otqkeoxpo9km95o46ixh6quy";
}
}
worker {
type = controller
bind_socket = localhost:56790
count = 1
keypair {
pubkey = "y3ms1knmetxf8gdeixkf74b6tbpxqugmxzqksnjodiqei7tksyty";
privkey = "oswsyqndpj3swqa4yqm4yzoyih83otqkeoxpo9km95o46ixh6quy";
}
secure_ip = ["127.0.0.1", "::1"];
}
classifier {
tokenizer {
name = "osb";
hash = ${STATS_HASH}
key = ${STATS_KEY}
}
backend = ${STATS_BACKEND}
statfile {
symbol = BAYES_SPAM;
path = ${STATSDIR}/rspamd-bats-bayes.spam;
size = 1M;
}
statfile {
symbol = BAYES_HAM;
path = ${STATSDIR}/rspamd-bats-bayes.ham;
size = 1M;
}
cache {
name = "sqlite3";
path = ${STATSDIR}/rspamd-bats-cache.sqlite;
}
}