From 46ef908c91cd6917e91fb9ff6c1c94cad8b0ac36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Fri, 21 Jan 2022 15:58:56 +0100 Subject: [PATCH] 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. --- mail-server/rspamd.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mail-server/rspamd.nix b/mail-server/rspamd.nix index 8d22e76..efe3abc 100644 --- a/mail-server/rspamd.nix +++ b/mail-server/rspamd.nix @@ -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");