From f3c7852dcdee17dd792552fa210bf70b2ed8155a Mon Sep 17 00:00:00 2001 From: schweby Date: Sat, 9 Jul 2022 19:39:40 +0200 Subject: [PATCH] !fixup add missing settings section --- services/gitea.nix | 75 +++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 37 deletions(-) diff --git a/services/gitea.nix b/services/gitea.nix index 5db2d08..2b35352 100644 --- a/services/gitea.nix +++ b/services/gitea.nix @@ -49,45 +49,46 @@ log.level = "Info"; # mailerPasswordFile = # "/var/lib/secrets/noreply"; # see below for access permissions - # settings = { - # mailer = { - # ENABLED = true; - # HOST = "0x0.rip:465"; - # FROM = "noreply@0x0.rip"; - # ENVELOPE_FROM = "noreply@0x0.rip"; - # USER = "noreply@0x0.rip"; + settings = { + # mailer = { + # ENABLED = true; + # HOST = "0x0.rip:465"; + # FROM = "noreply@0x0.rip"; + # ENVELOPE_FROM = "noreply@0x0.rip"; + # USER = "noreply@0x0.rip"; - # }; - repository = { - DEFAULT_PRIVATE = "public"; - PREFERRED_LICENSES = "Unlicense"; - DEFAULT_BRANCH = "main"; + # }; + repository = { + DEFAULT_PRIVATE = "public"; + PREFERRED_LICENSES = "Unlicense"; + DEFAULT_BRANCH = "main"; + }; + "repository.pull-requests" = { + DEFAULT_MERGE_STYLE = "merge"; + DEFAULT_MERGE_MESSAGE_ALL_AUTHORS = true; + }; + "repository.upload".FILE_MAX_SIZE = 1024; + server = { + LANDING_PAGE = "explore"; + OFFLINE = true; + }; + security = { INSTALL_LOCK = true; }; + other = { + SHOW_FOOTER_VERSION = false; + SHOW_FOOTER_TEMPLATE_LOAD_TIME = false; + }; + cron = { + ENABLED = true; + NOTICE_ON_SUCCESS = true; + }; + "cron.update_mirrors" = { + SCHEDULE = "@every 12h"; + PULL_LIMIT = "-1"; + PUSH_LIMIT = "-1"; + }; + "cron.git_gc_repos".ENABLED = true; + "cron.delete_old_actions".ENABLED = true; }; - "repository.pull-requests" = { - DEFAULT_MERGE_STYLE = "merge"; - DEFAULT_MERGE_MESSAGE_ALL_AUTHORS = true; - }; - "repository.upload".FILE_MAX_SIZE = 1024; - server = { - LANDING_PAGE = "explore"; - OFFLINE = true; - }; - security = { INSTALL_LOCK = true; }; - other = { - SHOW_FOOTER_VERSION = false; - SHOW_FOOTER_TEMPLATE_LOAD_TIME = false; - }; - cron = { - ENABLED = true; - NOTICE_ON_SUCCESS = true; - }; - "cron.update_mirrors" = { - SCHEDULE = "@every 12h"; - PULL_LIMIT = "-1"; - PUSH_LIMIT = "-1"; - }; - "cron.git_gc_repos".ENABLED = true; - "cron.delete_old_actions".ENABLED = true; }; services.postgresqlBackup = { enable = true;