This commit is contained in:
Sandro - 2023-01-06 21:08:58 +01:00
parent 814590616e
commit 193820e84f
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 12 additions and 32 deletions

View File

@ -17,17 +17,15 @@
domain = "gitea.c3d2.de";
rootUrl = "https://${domain}/";
database = {
type = "postgres";
};
database.type = "postgres";
repositoryRoot = "/var/lib/gitea/repositories";
lfs.enable = true;
dump = {
## Is a nice feature once we have a dedicated backup storage.
## For now it is disabled, since it delays `nixos-rebuild switch`.
# Is a nice feature once we have a dedicated backup storage.
# For now it is disabled, since it delays `nixos-rebuild switch`.
enable = false;
backupDir = "/var/lib/gitea/dump";
};
@ -38,31 +36,17 @@
ENABLED = true;
SCHEME = "https";
};
cron = {
ENABLED = true;
};
"cron.delete_generated_repository_avatars" = {
ENABLED = true;
};
"cron.delete_old_actions" = {
ENABLED = true;
};
"cron.delete_old_system_notices" = {
ENABLED = true;
};
"cron.repo_health_check" = {
TIMEOUT = "300s";
};
cron.ENABLED = true;
"cron.delete_generated_repository_avatars".ENABLED = true;
"cron.delete_old_actions".ENABLED = true;
"cron.delete_old_system_notices".ENABLED = true;
"cron.repo_health_check".TIMEOUT = "300s";
"cron.resync_all_sshkeys" = {
ENABLED = true;
RUN_AT_START = true;
};
database = {
LOG_SQL = false;
};
indexer = {
REPO_INDEXER_ENABLED = true;
};
database.LOG_SQL = false;
indexer.REPO_INDEXER_ENABLED = true;
log = {
LEVEL = "Info";
DISABLE_ROUTER_LOG = true;
@ -74,9 +58,7 @@
SENDMAIL_PATH = "/run/wrappers/bin/sendmail";
SENDMAIL_ARGS = "--";
};
other = {
SHOW_FOOTER_VERSION = false;
};
other.SHOW_FOOTER_VERSION = false;
picture = {
# this also disables libravatar
DISABLE_GRAVATAR = false;
@ -104,9 +86,7 @@
ECDSA = -1;
RSA = 4095;
};
time = {
DEFAULT_UI_LOCATION = config.time.timeZone;
};
time.DEFAULT_UI_LOCATION = config.time.timeZone;
ui = {
DEFAULT_THEME = "arc-green";
EXPLORE_PAGING_NUM = 25;