From 2854ce3422fa8da45b7c25dbb592d545cfc762a9 Mon Sep 17 00:00:00 2001 From: Nathan Date: Sun, 12 Jan 2025 16:32:30 -0600 Subject: [PATCH] moving to gitea --- system-config/configuration/homebox/default.nix | 3 ++- system-config/services/containers/default.nix | 1 + .../services/containers/gitea/default.nix | 15 ++++++++++++--- .../services/containers/traefik/default.nix | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/system-config/configuration/homebox/default.nix b/system-config/configuration/homebox/default.nix index 937686e..c0e6858 100644 --- a/system-config/configuration/homebox/default.nix +++ b/system-config/configuration/homebox/default.nix @@ -245,7 +245,8 @@ "blunkall.us".enable = true; pihole.enable = false; nextcloud.enable = true; - gitlab.enable = true; + #gitlab.enable = true; + gitea.enable = true; homeassistant.enable = true; ntfy.enable = true; }; diff --git a/system-config/services/containers/default.nix b/system-config/services/containers/default.nix index f3c59a0..9a5e978 100644 --- a/system-config/services/containers/default.nix +++ b/system-config/services/containers/default.nix @@ -2,6 +2,7 @@ imports = [ ./gitlab + ./gitea ./traefik ./authentik ./nginx diff --git a/system-config/services/containers/gitea/default.nix b/system-config/services/containers/gitea/default.nix index 6961ae9..bf7a0d3 100644 --- a/system-config/services/containers/gitea/default.nix +++ b/system-config/services/containers/gitea/default.nix @@ -68,12 +68,21 @@ dump.enable = true; + appName = "Gitea"; + settings = { server = { DOMAIN = "gitea.blunkall.us"; - HTTP_PORT = 80; + HTTP_PORT = 3000; + ROOT_URL = "https://gitea.blunkall.us/"; + }; + service = { + DISABLE_REGISTRATION = false; + ALLOW_ONLY_EXTERNAL_REGISTRATION = true; + }; + oauth2_client = { + ENABLE_AUTO_REGISTRATION = true; }; - service.DISABLE_REGISTRATION = false; session.COOKIE_SECURE = true; }; @@ -84,7 +93,7 @@ }; services.openssh.enable = true; - networking.firewall.allowedTCPPorts = [ 22 80 ]; + networking.firewall.allowedTCPPorts = [ 22 3000 ]; system.stateVersion = "24.11"; }; diff --git a/system-config/services/containers/traefik/default.nix b/system-config/services/containers/traefik/default.nix index 8e71d6a..63cf04f 100644 --- a/system-config/services/containers/traefik/default.nix +++ b/system-config/services/containers/traefik/default.nix @@ -240,7 +240,7 @@ services = { gitlab.loadBalancer.servers = [ { url = "http://192.168.100.16:80"; } ]; - gitea.loadBalancer.servers = [ { url = "http://192.168.100.20:80"; } ]; + gitea.loadBalancer.servers = [ { url = "http://192.168.100.20:3000"; } ]; homepage.loadBalancer.servers = [ { url = "http://192.168.100.13:80"; } ];