Compare commits
2 commits
e46d6ff044
...
b492d1be58
Author | SHA1 | Date | |
---|---|---|---|
b492d1be58 | |||
0043ad480b |
3 changed files with 20 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./postgresql.nix
|
||||
./redis.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,7 +1,16 @@
|
|||
_: {
|
||||
services.redis.servers.default = {
|
||||
{...}: {
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue