From 08d138ca0a4074c71f4ee1c0bb2815e46a46c5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 26 Apr 2023 20:49:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20update=20deprecated=20config=20+?= =?UTF-8?q?=20simplify=20config=20by=20removing=20double=20quotes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/hydrogen/services/gitea/default.nix | 26 ++++++++++++----------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/hosts/hydrogen/services/gitea/default.nix b/hosts/hydrogen/services/gitea/default.nix index 49032e9..8123fb9 100644 --- a/hosts/hydrogen/services/gitea/default.nix +++ b/hosts/hydrogen/services/gitea/default.nix @@ -9,8 +9,6 @@ services.gitea = { enable = true; package = pkgs.forgejo; - domain = "git.fainsin.bzh"; - rootUrl = "https://git.fainsin.bzh"; lfs.enable = true; database = { type = "postgres"; @@ -18,20 +16,24 @@ }; settings = { service = { - "DEFAULT_KEEP_EMAIL_PRIVATE" = true; - "DISABLE_REGISTRATION" = true; + DEFAULT_KEEP_EMAIL_PRIVATE = true; + DISABLE_REGISTRATION = true; + }; + server = { + LANDING_PAGE = "explore"; + ROOT_URL = "https://git.fainsin.bzh"; + DOMAIN = "git.fainsin.bzh"; }; - server = { "LANDING_PAGE" = "explore"; }; indexer = { - "REPO_INDEXER_ENABLED" = true; - "REPO_INDEXER_PATH" = "indexers/repos.bleve"; - "UPDATE_BUFFER_LEN" = 20; - "MAX_FILE_SIZE" = 1048576; - "REPO_INDEXER_EXCLUDE" = "node_modules/**"; + REPO_INDEXER_ENABLED = true; + REPO_INDEXER_PATH = "indexers/repos.bleve"; + UPDATE_BUFFER_LEN = 20; + MAX_FILE_SIZE = 1048576; + REPO_INDEXER_EXCLUDE = "node_modules/**"; }; session = { - "PROVIDER" = "db"; - "COOKIE_SECURE" = true; + PROVIDER = "db"; + COOKIE_SECURE = true; }; }; };