commit e2664ce: [Conf] Slashing: Change default stats backend to Redis

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jun 10 17:14:08 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-06-10 12:35:21 +0100
URL: https://github.com/rspamd/rspamd/commit/e2664ce23923f069117072fe4966db9f5a222e54

[Conf] Slashing: Change default stats backend to Redis

---
 conf/statistic.conf | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/conf/statistic.conf b/conf/statistic.conf
index d9b9a1b72..d2b5b147a 100644
--- a/conf/statistic.conf
+++ b/conf/statistic.conf
@@ -26,19 +26,20 @@ classifier "bayes" {
   cache {
     path = "${DBDIR}/learn_cache.sqlite";
   }
+  new_schema = true; # Always use new schema
+  store_tokens = false; # Redefine if storing of tokens is desired
+  signatures = false; # Store learn signatures
+  #per_user = true; # Enable per user classifier
   min_tokens = 11;
-  backend = "sqlite3";
-  languages_enabled = true;
+  backend = "redis";
   min_learns = 200;
 
   statfile {
     symbol = "BAYES_HAM";
-    path = "${DBDIR}/bayes.ham.sqlite";
     spam = false;
   }
   statfile {
     symbol = "BAYES_SPAM";
-    path = "${DBDIR}/bayes.spam.sqlite";
     spam = true;
   }
   learn_condition =<<EOD


More information about the Commits mailing list