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