mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-22 11:41:26 +00:00
feat: a redis database for SelfPrivacy API
This commit is contained in:
parent
5f2ab0495b
commit
aeeffe42b1
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue