From 5f19fa64711cd73f6ce5defc3eb23ddf94983ed2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 15 Mar 2020 20:57:07 +0000 Subject: [Minor] Add some docs --- src/plugins/lua/history_redis.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/plugins/lua/history_redis.lua') diff --git a/src/plugins/lua/history_redis.lua b/src/plugins/lua/history_redis.lua index cc26a281e..b05df4e5d 100644 --- a/src/plugins/lua/history_redis.lua +++ b/src/plugins/lua/history_redis.lua @@ -15,6 +15,19 @@ limitations under the License. ]]-- if confighelp then + rspamd_config:add_example(nil, 'history_redis', + "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 +} + ]]) return end -- cgit v1.2.3