forgejo: enable lfs && enable redis for session storage
All checks were successful
ci/woodpecker/cron/flake-lock-update Pipeline was successful

This commit is contained in:
notohh 2024-05-26 16:52:48 -04:00
parent 43a7c4a3e2
commit 6a387e3586
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -12,10 +12,13 @@ in {
services.forgejo = {
enable = true;
stateDir = "/var/lib/forgejo";
lfs.enable = true;
settings = {
service.DISABLE_REGISTRATION = true;
DEFAULT.APP_NAME = "forgejo";
log.LEVEL = "Debug";
packages.ENABLED = true;
federation.ENABLED = true;
ui = {
DEFAULT_THEME = "forgejo-dark";
SHOW_USER_EMAIL = true;
@ -42,7 +45,8 @@ in {
CLONE = 3600;
};
session = {
COOKIE_SECURE = true;
PROVIDER = "redis";
PROVIDER_CONFIG = "redis://:forgejo@${dbHost}:6379";
};
security = {
LOGIN_REMEMBER_DAYS = 14;