mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-05-05 10:10:51 +05:00
set rspamd worker type depending on NixOS release
The worker type "proxy" was renamed to "rspamd_proxy" in https://github.com/NixOS/nixpkgs/pull/49809.
This commit is contained in:
parent
c2ca4d1bb0
commit
1822a4f045
@ -42,7 +42,7 @@ in
|
|||||||
'');
|
'');
|
||||||
|
|
||||||
workers.rspamd_proxy = {
|
workers.rspamd_proxy = {
|
||||||
type = "proxy";
|
type = if (lib.versionAtLeast config.system.nixos.release "19.03") then "rspamd_proxy" else "proxy";
|
||||||
bindSockets = [{
|
bindSockets = [{
|
||||||
socket = "/run/rspamd/rspamd-milter.sock";
|
socket = "/run/rspamd/rspamd-milter.sock";
|
||||||
mode = "0664";
|
mode = "0664";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user