From f6ba8a0fa167226413b1f9bfcb6a1c1ead9e61ae Mon Sep 17 00:00:00 2001 From: isabel Date: Thu, 19 Oct 2023 15:22:00 +0100 Subject: [PATCH] improve forgejo's configuration --- .../types/server/services/forgejo/default.nix | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/modules/common/types/server/services/forgejo/default.nix b/modules/common/types/server/services/forgejo/default.nix index 4d5d6f7df..dd2948754 100644 --- a/modules/common/types/server/services/forgejo/default.nix +++ b/modules/common/types/server/services/forgejo/default.nix @@ -66,6 +66,8 @@ in { SSH_LISTEN_PORT = 2222; }; + api.ENABLE_SWAGGER = false; + default.APP_NAME = "iztea"; attachment.ALLOWED_TYPES = "*/*"; @@ -79,6 +81,12 @@ in { (builtins.attrNames (builtins.readDir theme)))); }; + # "ui.meta" = { + # AUTHOR = "Isabel Roses"; + # DESCRIPTION = "A super cool place to host git repos"; + # KEYWORDS = "git,self-hosted,gitea,forgejo,isabelroses,catppuccin,open-source,nix,nixos"; + # }; + actions = { ENABLED = true; DEFAULT_ACTIONS_URL = "https://code.forgejo.org"; @@ -98,7 +106,17 @@ in { HOST = "redis://:forgejo@localhost:6371"; }; - service.DISABLE_REGISTRATION = true; + service = { + DISABLE_REGISTRATION = true; + EMAIL_DOMAIN_ALLOWLIST = "isabelroses.com"; + }; + + other = { + SHOW_FOOTER_VERSION = false; + SHOW_FOOTER_TEMPLATE_LOAD_TIME = false; + ENABLE_FEED = false; + }; + migrations.ALLOWED_DOMAINS = "github.com, *.github.com, gitlab.com, *.gitlab.com"; packages.ENABLED = false; repository.PREFERRED_LICENSES = "MIT,GPL-3.0,GPL-2.0,LGPL-3.0,LGPL-2.1";