From b492d1be580c8f497c459001c722df007c1a6d13 Mon Sep 17 00:00:00 2001 From: notohh Date: Sat, 7 Oct 2023 20:43:04 -0400 Subject: [PATCH] forgejo: use redis for caching --- hosts/sakura/services/forgejo.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/sakura/services/forgejo.nix b/hosts/sakura/services/forgejo.nix index 804119a..feaa7c4 100644 --- a/hosts/sakura/services/forgejo.nix +++ b/hosts/sakura/services/forgejo.nix @@ -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;