`port` should be a port
This commit is contained in:
parent
4b50bf40fc
commit
f3765d0401
14
rspamd.nix
14
rspamd.nix
|
@ -45,7 +45,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = str;
|
type = port;
|
||||||
default = 6379;
|
default = 6379;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ in {
|
||||||
|
|
||||||
"dmark.conf".text = ''
|
"dmark.conf".text = ''
|
||||||
dmarc = {
|
dmarc = {
|
||||||
servers = "${cfg.redis.host}:${cfg.redis.port}";
|
servers = "${cfg.redis.host}:${toString cfg.redis.port}";
|
||||||
password = "${cfg.redis.password}";
|
password = "${cfg.redis.password}";
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
@ -110,7 +110,7 @@ in {
|
||||||
"mx_check.conf".text = ''
|
"mx_check.conf".text = ''
|
||||||
enabled = true;
|
enabled = true;
|
||||||
|
|
||||||
servers = "${cfg.redis.host}:${cfg.redis.port}";
|
servers = "${cfg.redis.host}:${toString cfg.redis.port}";
|
||||||
password = "${cfg.redis.password}";
|
password = "${cfg.redis.password}";
|
||||||
|
|
||||||
timeout = 10.0;
|
timeout = 10.0;
|
||||||
|
@ -127,7 +127,7 @@ in {
|
||||||
selector "ip" {
|
selector "ip" {
|
||||||
}
|
}
|
||||||
backend "redis" {
|
backend "redis" {
|
||||||
servers = "${cfg.redis.host}:${cfg.redis.port}";
|
servers = "${cfg.redis.host}:${toString cfg.redis.port}";
|
||||||
password = "${cfg.redis.password}";
|
password = "${cfg.redis.password}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ in {
|
||||||
selector "spf" {
|
selector "spf" {
|
||||||
}
|
}
|
||||||
backend "redis" {
|
backend "redis" {
|
||||||
servers = "${cfg.redis.host}:${cfg.redis.port}";
|
servers = "${cfg.redis.host}:${toString cfg.redis.port}";
|
||||||
password = "${cfg.redis.password}";
|
password = "${cfg.redis.password}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ in {
|
||||||
selector "dkim" {
|
selector "dkim" {
|
||||||
}
|
}
|
||||||
backend "redis" {
|
backend "redis" {
|
||||||
servers = "${cfg.redis.host}:${cfg.redis.port}";
|
servers = "${cfg.redis.host}:${toString cfg.redis.port}";
|
||||||
password = "${cfg.redis.password}";
|
password = "${cfg.redis.password}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ in {
|
||||||
selector = "ip"; # see https://rspamd.com/doc/configuration/selectors.html
|
selector = "ip"; # see https://rspamd.com/doc/configuration/selectors.html
|
||||||
}
|
}
|
||||||
backend "redis" {
|
backend "redis" {
|
||||||
servers = "${cfg.redis.host}:${cfg.redis.port}";
|
servers = "${cfg.redis.host}:${toString cfg.redis.port}";
|
||||||
password = "${cfg.redis.password}";
|
password = "${cfg.redis.password}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue