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;

View file

@ -26,10 +26,10 @@ in
path = "/var/lib/gitea/data/gitea.db";
createDatabase = true;
};
ssh = {
enable = true;
clonePort = 22;
};
# ssh = {
# enable = true;
# clonePort = 22;
# };
lfs = {
enable = true;
contentDir = "/var/lib/gitea/lfs";