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:
Naïm Favier 2022-01-21 15:58:56 +01:00
parent 53af883255
commit 46ef908c91
No known key found for this signature in database
GPG Key ID: 49B07322580B7EE2

View File

@ -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");