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 = [ imports = [
./postgresql.nix ./postgresql.nix
./redis.nix
]; ];
} }

View file

@ -1,7 +1,16 @@
_: { {...}: {
services.redis.servers.default = { services.redis.servers = {
forgejo = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
port = 6379; 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"; USER = "forgejo";
PASSWD = "forgejo"; PASSWD = "forgejo";
}; };
cache = {
ENABLED = true;
ADAPTER = lib.mkForce "redis";
HOST = "redis://:forgejo@100.94.214.100:6379";
};
metrics = { metrics = {
ENABLED = true; ENABLED = true;
ENABLED_ISSUE_BY_REPOSITORY = true; ENABLED_ISSUE_BY_REPOSITORY = true;