forgejo: enable lfs && enable redis for session storage
All checks were successful
ci/woodpecker/cron/flake-lock-update Pipeline was successful
All checks were successful
ci/woodpecker/cron/flake-lock-update Pipeline was successful
This commit is contained in:
parent
43a7c4a3e2
commit
6a387e3586
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue