From 1204730924436ef9e1c7c49c9557837f9a5ed0e8 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Wed, 8 Feb 2023 00:40:09 -0800 Subject: fork https://github.com/mattsta/mailweb --- ansible/roles/rspamd/files/redis/redis.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ansible/roles/rspamd/files/redis/redis.conf (limited to 'ansible/roles/rspamd/files/redis') diff --git a/ansible/roles/rspamd/files/redis/redis.conf b/ansible/roles/rspamd/files/redis/redis.conf new file mode 100644 index 0000000..ee237d9 --- /dev/null +++ b/ansible/roles/rspamd/files/redis/redis.conf @@ -0,0 +1,21 @@ +# listen only on localhost +# Even though we only tell rspamd to contact Redis over 127.0.0.1, it still +# connects via ::1 for some modules as well, so things inside rspamd break +# if redis isn't listening on both 127.0.0.1 and ::1 +bind 127.0.0.1 ::1 + +# limit the max amount of memory used - appropriate value will depend on +# your email volume +maxmemory 512mb +maxmemory-policy volatile-lru + +daemonize yes + +logfile /var/log/redis/redis-server.log +dir /var/lib/redis + +appendonly yes +appendfilename redisisgarbage.aof +dbfilename redisisgarbage.rdb + +pidfile /var/run/redis/redis-server.pid -- cgit v1.2.3