From 9740b4249324eacde2e62e6eb223cf96bf510a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 25 Aug 2023 09:41:42 +0300 Subject: [PATCH] gitea: listen on 3001 --- data.nix | 1 + modules/services/gitea/default.nix | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data.nix b/data.nix index 9f35c50..f014b39 100644 --- a/data.nix +++ b/data.nix @@ -9,6 +9,7 @@ rec { ports = { grafana = 3000; + gitea = 3001; prometheus = 9001; exporters = { node = 9002; diff --git a/modules/services/gitea/default.nix b/modules/services/gitea/default.nix index f932e36..4c4ce80 100644 --- a/modules/services/gitea/default.nix +++ b/modules/services/gitea/default.nix @@ -45,7 +45,7 @@ LANDING_PAGE = "/motiejus"; ROOT_URL = "https://git.jakstys.lt"; HTTP_ADDR = "127.0.0.1"; - HTTP_PORT = 3000; + HTTP_PORT = myData.ports.gitea; DOMAIN = "git.jakstys.lt"; }; service = { @@ -74,7 +74,7 @@ caddy = { virtualHosts."git.jakstys.lt".extraConfig = '' - reverse_proxy 127.0.0.1:3000 + reverse_proxy 127.0.0.1:${toString myData.ports.gitea} ''; }; };