From f6a24587962b09f0315cba54249edff87cee9439 Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Tue, 13 Jun 2023 04:23:54 +0300 Subject: [PATCH] update gitea module --- profiles/servers/gitea.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/profiles/servers/gitea.nix b/profiles/servers/gitea.nix index 45326e2..51fc7cc 100644 --- a/profiles/servers/gitea.nix +++ b/profiles/servers/gitea.nix @@ -23,21 +23,22 @@ in { type = "postgres"; passwordFile = config.secrets.gitea.decrypted; }; - # TODO: cleanup dumps older than... dump = { enable = true; backupDir = "/srv/gitea/dump"; interval = "06:00"; type = "tar.zst"; }; - domain = "code.ataraxiadev.com"; - httpAddress = "127.0.0.1"; - httpPort = 6000; lfs.enable = true; - rootUrl = "https://code.ataraxiadev.com"; stateDir = "/srv/gitea/data"; mailerPasswordFile = config.secrets.gitea-mailer.decrypted; settings = { + server = { + DOMAIN = "code.ataraxiadev.com"; + HTTP_ADDRESS = "127.0.0.1"; + HTTP_PORT = 6000; + ROOT_URL = "https://code.ataraxiadev.com"; + }; api = { ENABLE_SWAGGER = false; }; @@ -52,7 +53,9 @@ in { USER = "gitea@ataraxiadev.com"; }; migrations = { - ALLOWED_DOMAINS = "github.com, *.github.com, gitlab.com, *.gitlab.com"; + ALLOW_LOCALNETWORKS = true; + # ALLOWED_DOMAINS = "github.com, *.github.com, gitlab.com, *.gitlab.com, notabug.com, *.notabug.com"; + ALLOWED_DOMAINS = ""; }; packages = { ENABLED = false; @@ -111,4 +114,4 @@ in { -mindepth 1 -type f -mtime +${older-than} -delete ''; }; -} \ No newline at end of file +}