rspamd: set default port for redis
Since we are now using services.redis.servers.rspamd, the port defaults to 0 (i.e. do not bind a TCP socket). We still want rspamd to connect to redis via TCP, so set a default port that is one above the default redis port.
This commit is contained in:
parent
53af883255
commit
46ef908c91
1 changed files with 4 additions and 1 deletions
|
@ -98,7 +98,10 @@ in
|
|||
|
||||
};
|
||||
|
||||
services.redis.servers.rspamd.enable = true;
|
||||
services.redis.servers.rspamd = {
|
||||
enable = lib.mkDefault true;
|
||||
port = lib.mkDefault 6380;
|
||||
};
|
||||
|
||||
systemd.services.rspamd = {
|
||||
requires = [ "redis-rspamd.service" ] ++ (lib.optional cfg.virusScanning "clamav-daemon.service");
|
||||
|
|
Loading…
Reference in a new issue