Compare commits

...

2 commits

Author SHA1 Message Date
b492d1be58
forgejo: use redis for caching
All checks were successful
/ check (push) Successful in 32s
2023-10-07 20:43:04 -04:00
0043ad480b
arashi: init redis 2023-10-07 20:42:30 -04:00
3 changed files with 20 additions and 5 deletions

View file

@ -1,5 +1,6 @@
_: {
imports = [
./postgresql.nix
./redis.nix
];
}

View file

@ -1,7 +1,16 @@
_: {
services.redis.servers.default = {
enable = true;
openFirewall = true;
port = 6379;
{...}: {
services.redis.servers = {
forgejo = {
enable = true;
openFirewall = true;
port = 6379;
bind = "100.94.214.100";
databases = 16;
logLevel = "debug";
requirePass = "forgejo";
settings = {
protected-mode = "no";
};
};
};
}

View file

@ -36,6 +36,11 @@
USER = "forgejo";
PASSWD = "forgejo";
};
cache = {
ENABLED = true;
ADAPTER = lib.mkForce "redis";
HOST = "redis://:forgejo@100.94.214.100:6379";
};
metrics = {
ENABLED = true;
ENABLED_ISSUE_BY_REPOSITORY = true;