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) ]; 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; boot.cleanTmpDir = true;
networking = { networking = {
hostName = config.services.userdata.hostname; hostName = config.services.userdata.hostname;

View file

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