services: gitea: fix renamed options

This commit is contained in:
Antoine Martin 2022-08-29 13:28:59 +02:00
parent 77b5936a0b
commit 1d9db293ea

View file

@ -57,21 +57,22 @@ in {
rootUrl = "https://git.${domain}/"; rootUrl = "https://git.${domain}/";
httpAddress = "127.0.0.1"; httpAddress = "127.0.0.1";
httpPort = cfg.privatePort; httpPort = cfg.privatePort;
log.level = "Warn"; # [ "Trace" "Debug" "Info" "Warn" "Error" "Critical" ]
lfs.enable = true; lfs.enable = true;
# NOTE: temporarily remove this for initial setup
disableRegistration = true;
# only send cookies via HTTPS
cookieSecure = true;
settings = { settings = {
log.LEVEL = "Warn"; # [ "Trace" "Debug" "Info" "Warn" "Error" "Critical" ]
other.SHOW_FOOTER_VERSION = false; other.SHOW_FOOTER_VERSION = false;
repository = { repository = {
ENABLE_PUSH_CREATE_USER = true; ENABLE_PUSH_CREATE_USER = true;
DEFAULT_BRANCH = "main"; DEFAULT_BRANCH = "main";
}; };
# NOTE: temporarily remove this for initial setup
service.DISABLE_REGISTRATION = true;
# only send cookies via HTTPS
session.COOKIE_SECURE = true;
}; };
# NixOS module uses `gitea dump` to backup repositories and the database, # NixOS module uses `gitea dump` to backup repositories and the database,