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 = ${LOCAL_ADDR}:${PORT_NORMAL}
	count = 1
	keypair {
		pubkey = "${KEY_PUBLIC}";
		privkey = "${KEY_PRIVATE}";
	}
}
worker {
	type = controller
	bind_socket = ${LOCAL_ADDR}:${PORT_CONTROLLER}
	count = 1
	keypair {
		pubkey = "${KEY_PUBLIC}";
		privkey = "${KEY_PRIVATE}";
	}
	secure_ip = ["127.0.0.1", "::1"];
}

classifier {
	languages_enabled = true;
	tokenizer {
		name = "osb";
		hash = ${STATS_HASH}
		key = ${STATS_KEY}
	}
	backend = ${STATS_BACKEND}
	statfile {
		symbol = BAYES_SPAM;
		path = ${STATSDIR}/rspamd-bats-bayes.spam;
		size = 1M;
		write_servers = ${REDIS_SERVER}
	}
	statfile {
		symbol = BAYES_HAM;
		path = ${STATSDIR}/rspamd-bats-bayes.ham;
		size = 1M;
		write_servers = ${REDIS_SERVER}
	}

	cache {
		path = ${STATSDIR}/rspamd-bats-cache.sqlite;
		write_servers = ${REDIS_SERVER}
	}
}

settings {}
