diff options
Diffstat (limited to 'ansible/roles/rspamd/files/redis/redis.conf')
-rw-r--r-- | ansible/roles/rspamd/files/redis/redis.conf | 21 |
1 files changed, 21 insertions, 0 deletions
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 @@ | |||
1 | # listen only on localhost | ||
2 | # Even though we only tell rspamd to contact Redis over 127.0.0.1, it still | ||
3 | # connects via ::1 for some modules as well, so things inside rspamd break | ||
4 | # if redis isn't listening on both 127.0.0.1 and ::1 | ||
5 | bind 127.0.0.1 ::1 | ||
6 | |||
7 | # limit the max amount of memory used - appropriate value will depend on | ||
8 | # your email volume | ||
9 | maxmemory 512mb | ||
10 | maxmemory-policy volatile-lru | ||
11 | |||
12 | daemonize yes | ||
13 | |||
14 | logfile /var/log/redis/redis-server.log | ||
15 | dir /var/lib/redis | ||
16 | |||
17 | appendonly yes | ||
18 | appendfilename redisisgarbage.aof | ||
19 | dbfilename redisisgarbage.rdb | ||
20 | |||
21 | pidfile /var/run/redis/redis-server.pid | ||