diff options
author | clarkzjw <[email protected]> | 2023-02-08 00:40:09 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-08 00:40:09 -0800 |
commit | 1204730924436ef9e1c7c49c9557837f9a5ed0e8 (patch) | |
tree | 129d79dfd11245751cee6d4082ff5d2f6e941610 /ansible/roles/rspamd/files/redis | |
parent | 9635ac4dedf69de5bff65785bcc16bef80b52d75 (diff) | |
download | mail-master.tar.gz |
Diffstat (limited to 'ansible/roles/rspamd/files/redis')
-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 | ||