feat: a redis database for SelfPrivacy API

This commit is contained in:
inexcode
2022-11-04 11:57:00 +03:00
parent 5f2ab0495b
commit aeeffe42b1
2 changed files with 23 additions and 4 deletions

View File

@@ -30,6 +30,25 @@ in
nixpkgs.overlays = [ (nix-overlay) ];
services.redis.servers.sp-api = {
enable = true;
save = [
[
30
1
]
[
10
10
]
];
port = 0;
settings = {
notify-keyspace-events = "KEA";
};
};
boot.cleanTmpDir = true;
networking = {
hostName = config.services.userdata.hostname;