viola: upstream
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
parent
a50ae76a23
commit
e6c9d19b0f
61 changed files with 492 additions and 244 deletions
152
viola/services/redis.nix
Normal file
152
viola/services/redis.nix
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
{pkgs, ...}: {
|
||||
services = {
|
||||
redis = {
|
||||
package = pkgs.valkey;
|
||||
servers = {
|
||||
"forgejo" = {
|
||||
enable = true;
|
||||
port = ${cacheport1};
|
||||
logLevel = "warning";
|
||||
databases = 16;
|
||||
maxclients = 10000;
|
||||
requirePass = ${cachepass1};
|
||||
|
||||
settings = {
|
||||
stop-writes-on-bgsave-error = "yes";
|
||||
rdbcompression = "yes";
|
||||
rdbchecksum = "yes";
|
||||
|
||||
maxmemory = "1GB";
|
||||
maxmemory-policy = "volatile-lru";
|
||||
maxmemory-samples = 3;
|
||||
};
|
||||
|
||||
save = [
|
||||
[
|
||||
900
|
||||
1
|
||||
]
|
||||
|
||||
[
|
||||
300
|
||||
10
|
||||
]
|
||||
|
||||
[
|
||||
60
|
||||
1000
|
||||
]
|
||||
];
|
||||
};
|
||||
|
||||
"woodpecker" = {
|
||||
enable = false;
|
||||
port = ${cacheport2};
|
||||
logLevel = "warning";
|
||||
databases = 16;
|
||||
maxclients = 10000;
|
||||
requirePass = ${cachepass2};
|
||||
|
||||
settings = {
|
||||
stop-writes-on-bgsave-error = "yes";
|
||||
rdbcompression = "yes";
|
||||
rdbchecksum = "yes";
|
||||
|
||||
maxmemory = "1GB";
|
||||
maxmemory-policy = "volatile-lru";
|
||||
maxmemory-samples = 3;
|
||||
};
|
||||
|
||||
save = [
|
||||
[
|
||||
900
|
||||
1
|
||||
]
|
||||
|
||||
[
|
||||
300
|
||||
10
|
||||
]
|
||||
|
||||
[
|
||||
60
|
||||
1000
|
||||
]
|
||||
];
|
||||
};
|
||||
|
||||
"stalwart" = {
|
||||
enable = true;
|
||||
port = ${cacheport3};
|
||||
logLevel = "warning";
|
||||
databases = 16;
|
||||
maxclients = 10000;
|
||||
requirePass = ${cachepass3};
|
||||
|
||||
settings = {
|
||||
stop-writes-on-bgsave-error = "yes";
|
||||
rdbcompression = "yes";
|
||||
rdbchecksum = "yes";
|
||||
|
||||
maxmemory = "1GB";
|
||||
maxmemory-policy = "volatile-lru";
|
||||
maxmemory-samples = 3;
|
||||
};
|
||||
|
||||
save = [
|
||||
[
|
||||
900
|
||||
1
|
||||
]
|
||||
|
||||
[
|
||||
300
|
||||
10
|
||||
]
|
||||
|
||||
[
|
||||
60
|
||||
1000
|
||||
]
|
||||
];
|
||||
};
|
||||
|
||||
"zitadel" = {
|
||||
enable = true;
|
||||
port = ${cacheport4};
|
||||
logLevel = "warning";
|
||||
databases = 16;
|
||||
maxclients = 10000;
|
||||
requirePass = ${cachepass4};
|
||||
|
||||
settings = {
|
||||
stop-writes-on-bgsave-error = "yes";
|
||||
rdbcompression = "yes";
|
||||
rdbchecksum = "yes";
|
||||
|
||||
maxmemory = "1GB";
|
||||
maxmemory-policy = "volatile-lru";
|
||||
maxmemory-samples = 3;
|
||||
};
|
||||
|
||||
save = [
|
||||
[
|
||||
900
|
||||
1
|
||||
]
|
||||
|
||||
[
|
||||
300
|
||||
10
|
||||
]
|
||||
|
||||
[
|
||||
60
|
||||
1000
|
||||
]
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue