forgejo: increase login ttl / disable signups

This commit is contained in:
notohh 2023-12-30 20:46:58 -05:00
parent 7d7f6f4407
commit beb87f47a6
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -9,7 +9,7 @@
enable = true; enable = true;
stateDir = "/var/lib/forgejo"; stateDir = "/var/lib/forgejo";
settings = { settings = {
service.DISABLE_REGISTRATION = false; service.DISABLE_REGISTRATION = true;
DEFAULT.APP_NAME = "forgejo"; DEFAULT.APP_NAME = "forgejo";
log.LEVEL = "Debug"; log.LEVEL = "Debug";
ui = { ui = {
@ -34,6 +34,9 @@
session = { session = {
COOKIE_SECURE = true; COOKIE_SECURE = true;
}; };
security = {
LOGIN_REMEMBER_DAYS = 14;
};
database = { database = {
DB_TYPE = lib.mkForce "postgres"; DB_TYPE = lib.mkForce "postgres";
HOST = "192.168.1.211:5432"; HOST = "192.168.1.211:5432";