commit a340977: [Minor] Redis_history: Fix docs

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Dec 2 20:35:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-12-02 20:18:39 +0000
URL: https://github.com/rspamd/rspamd/commit/a3409774a675e2a8d2444097f0d9a83533997628

[Minor] Redis_history: Fix docs
Issue: #3997

---
 src/plugins/lua/history_redis.lua | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/plugins/lua/history_redis.lua b/src/plugins/lua/history_redis.lua
index c14b8d32a..fa9db5b85 100644
--- a/src/plugins/lua/history_redis.lua
+++ b/src/plugins/lua/history_redis.lua
@@ -19,13 +19,20 @@ if confighelp then
       "Store history of checks for WebUI using Redis",
       [[
 redis_history {
-  key_prefix = 'rs_history', # default key name
-  nrows = 200; # default rows limit
-  compress = true; # use zstd compression when storing data in redis
-  subject_privacy = false; # subject privacy is off
-  subject_privacy_alg = 'blake2'; # default hash-algorithm to obfuscate subject
-  subject_privacy_prefix = 'obf'; # prefix to show it's obfuscated
-  subject_privacy_length = 16; # cut the length of the hash
+  # History key name
+  key_prefix = 'rs_history';
+  # History rows limit
+  nrows = 200;
+  # Use zstd compression when storing data in redis
+  compress = true;
+  # Obfuscate subjects for privacy
+  subject_privacy = false;
+  # Default hash-algorithm to obfuscate subject
+  subject_privacy_alg = 'blake2';
+  # Prefix to show it's obfuscated
+  subject_privacy_prefix = 'obf';
+  # Cut the length of the hash if desired
+  subject_privacy_length = 16;
 }
   ]])
   return


More information about the Commits mailing list