From 860bb220346299627fccd419b834c995902363b3 Mon Sep 17 00:00:00 2001 From: niten Date: Mon, 17 Jul 2023 18:14:46 -0700 Subject: [PATCH] [gitea] Switch to new settings --- lib/fudo/git.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/fudo/git.nix b/lib/fudo/git.nix index f98ed6f..ebc7c23 100644 --- a/lib/fudo/git.nix +++ b/lib/fudo/git.nix @@ -123,12 +123,8 @@ in { passwordFile = cfg.database.password-file; type = "postgres"; }; - domain = cfg.hostname; - httpAddress = "127.0.0.1"; - httpPort = cfg.local-port; repositoryRoot = cfg.repository-dir; stateDir = cfg.state-dir; - rootUrl = "https://${cfg.hostname}/"; user = mkIf (cfg.user != null) cfg.user; settings = mkIf (cfg.ssh != null) { server = { @@ -141,6 +137,11 @@ in { # Actual ip/port on which to listen SSH_LISTEN_PORT = cfg.ssh.listen-port; SSH_LISTEN_HOST = cfg.ssh.listen-ip; + + ROOT_URL = "https://${cfg.hostname}/"; + HTTP_ADDR = "127.0.0.1"; + HTTP_PORT = cfg.local-port; + DOMAIN = cfg.hostname; }; }; };