Nope...we need a password I guess

This commit is contained in:
2023-10-16 11:54:32 -07:00
parent 2a1bc560e1
commit f07f164fe4
2 changed files with 17 additions and 26 deletions
+7 -2
View File
@@ -254,6 +254,10 @@ in {
];
virtualisation.arion.projects.mail-server.settings = let
redisPasswdFile =
pkgs.lib.passwd.stablerandom-passwd-file "mail-server-redis-passwd"
config.instance.build-seed;
image = { pkgs, ... }: {
project.name = "mail-server";
networks = {
@@ -435,6 +439,7 @@ in {
host = "antivirus";
port = antivirusPort;
};
redis.password = readFile redisPasswdFile;
};
};
};
@@ -501,9 +506,9 @@ in {
system.nssModules = lib.mkForce [ ];
services.redis.servers."rspamd" = {
enable = true;
# null -> all
bind = null;
bind = null; # null -> all
port = redisPort;
requirePassFile = "/run/redis/passwd";
};
};
};