From f3765d04019ffbe0929c5d640dc4523c81d7352a Mon Sep 17 00:00:00 2001 From: niten Date: Mon, 16 Oct 2023 08:35:58 -0700 Subject: [PATCH] `port` should be a port --- rspamd.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rspamd.nix b/rspamd.nix index 7b0d894..bf914b4 100644 --- a/rspamd.nix +++ b/rspamd.nix @@ -45,7 +45,7 @@ in { }; port = mkOption { - type = str; + type = port; default = 6379; }; @@ -102,7 +102,7 @@ in { "dmark.conf".text = '' dmarc = { - servers = "${cfg.redis.host}:${cfg.redis.port}"; + servers = "${cfg.redis.host}:${toString cfg.redis.port}"; password = "${cfg.redis.password}"; } ''; @@ -110,7 +110,7 @@ in { "mx_check.conf".text = '' enabled = true; - servers = "${cfg.redis.host}:${cfg.redis.port}"; + servers = "${cfg.redis.host}:${toString cfg.redis.port}"; password = "${cfg.redis.password}"; timeout = 10.0; @@ -127,7 +127,7 @@ in { selector "ip" { } backend "redis" { - servers = "${cfg.redis.host}:${cfg.redis.port}"; + servers = "${cfg.redis.host}:${toString cfg.redis.port}"; password = "${cfg.redis.password}"; } @@ -137,7 +137,7 @@ in { selector "spf" { } backend "redis" { - servers = "${cfg.redis.host}:${cfg.redis.port}"; + servers = "${cfg.redis.host}:${toString cfg.redis.port}"; password = "${cfg.redis.password}"; } @@ -147,7 +147,7 @@ in { selector "dkim" { } backend "redis" { - servers = "${cfg.redis.host}:${cfg.redis.port}"; + servers = "${cfg.redis.host}:${toString cfg.redis.port}"; password = "${cfg.redis.password}"; } @@ -158,7 +158,7 @@ in { selector = "ip"; # see https://rspamd.com/doc/configuration/selectors.html } backend "redis" { - servers = "${cfg.redis.host}:${cfg.redis.port}"; + servers = "${cfg.redis.host}:${toString cfg.redis.port}"; password = "${cfg.redis.password}"; }