From aa41800fc9d63923b8e72dd8534dfef2198b6503 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Sun, 6 Sep 2026 01:00:29 -0500 Subject: [PATCH] feat(homelab): open port 2223 and define GITEA_SSH_PORT for containerized SSH access - Add TCP port `2223` to firewall allowed ports in `hosts/desktop/homeserver.nix` and `hosts/server/homeserver.nix`. - Introduce `GITEA_SSH_PORT = "2223"` environment setting in `traefik-deployments.nix` for both desktop and server nodes. --- hosts/desktop/homeserver.nix | 4 ++-- hosts/desktop/traefik-deployments.nix | 1 + hosts/server/homeserver.nix | 4 ++-- hosts/server/traefik-deployments.nix | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hosts/desktop/homeserver.nix b/hosts/desktop/homeserver.nix index 3ffcbe7..f5d5d6f 100644 --- a/hosts/desktop/homeserver.nix +++ b/hosts/desktop/homeserver.nix @@ -63,6 +63,6 @@ }; }; - # 4. Open ports in the firewall for Traefik - networking.firewall.allowedTCPPorts = [ 80 443 ]; + # 4. Open ports in the firewall for Traefik and Gitea SSH + networking.firewall.allowedTCPPorts = [ 80 443 2223 ]; } diff --git a/hosts/desktop/traefik-deployments.nix b/hosts/desktop/traefik-deployments.nix index daea7e0..cc73664 100644 --- a/hosts/desktop/traefik-deployments.nix +++ b/hosts/desktop/traefik-deployments.nix @@ -43,6 +43,7 @@ # --- Gitea --- GITEA_DOMAIN = "gitea.roadtotech.me"; GITEA_SSH_DOMAIN = "gitea.roadtotech.me"; + GITEA_SSH_PORT = "2223"; GITEA_AUTH_MIDDLEWARE = "https-redirect@docker"; # --- Jellyfin --- diff --git a/hosts/server/homeserver.nix b/hosts/server/homeserver.nix index 3ffcbe7..f5d5d6f 100644 --- a/hosts/server/homeserver.nix +++ b/hosts/server/homeserver.nix @@ -63,6 +63,6 @@ }; }; - # 4. Open ports in the firewall for Traefik - networking.firewall.allowedTCPPorts = [ 80 443 ]; + # 4. Open ports in the firewall for Traefik and Gitea SSH + networking.firewall.allowedTCPPorts = [ 80 443 2223 ]; } diff --git a/hosts/server/traefik-deployments.nix b/hosts/server/traefik-deployments.nix index daea7e0..cc73664 100644 --- a/hosts/server/traefik-deployments.nix +++ b/hosts/server/traefik-deployments.nix @@ -43,6 +43,7 @@ # --- Gitea --- GITEA_DOMAIN = "gitea.roadtotech.me"; GITEA_SSH_DOMAIN = "gitea.roadtotech.me"; + GITEA_SSH_PORT = "2223"; GITEA_AUTH_MIDDLEWARE = "https-redirect@docker"; # --- Jellyfin ---