From b76fde3f9f31600aa8a399340a14ba6083fabe8a Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 25 Dec 2022 12:26:39 +0100 Subject: [PATCH] service/gitea: update and move to code-subdomain --- modules/services/gitea/default.nix | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/modules/services/gitea/default.nix b/modules/services/gitea/default.nix index 209b71b..93ba15d 100644 --- a/modules/services/gitea/default.nix +++ b/modules/services/gitea/default.nix @@ -19,11 +19,12 @@ in services.gitea = { enable = true; httpPort = cfg.port; - log.level = "Warn"; - disableRegistration = true; - cookieSecure = true; + rootUrl = "https://code.${domain}"; settings = { + session.COOKIE_SECURE = true; + service.DISABLE_REGISTRATION = true; ui.DEFAULT_THEME = "arc-green"; + log.LEVEL = "Warn"; }; lfs.enable = true; }; @@ -31,24 +32,24 @@ in # Proxy to Gitea my.services.nginx.virtualHosts = [ { - subdomain = "git"; + subdomain = "code"; inherit (cfg) port; } ]; - #my.services.backup = { - # paths = [ - # config.services.gitea.lfs.contentDir - # config.services.gitea.repositoryRoot - # ]; - #}; + my.services.backup = { + paths = [ + config.services.gitea.lfs.contentDir + config.services.gitea.repositoryRoot + ]; + }; webapps.apps.gitea = { dashboard = { - name = "Git"; + name = "Code"; category = "app"; - icon = "git"; - link = "https://git.${domain}"; + icon = "code-branch"; + link = "https://code.${domain}"; }; }; };