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 ---