From d60ba8e81f14209a9694d404c379c4e4b2d7e047 Mon Sep 17 00:00:00 2001 From: Nathan Date: Sat, 23 Nov 2024 23:50:52 -0600 Subject: [PATCH] change ssh port to allow git+ssh for gitlab --- .../services/containers/gitlab/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/system-config/services/containers/gitlab/default.nix b/system-config/services/containers/gitlab/default.nix index e3660aa..86642f8 100644 --- a/system-config/services/containers/gitlab/default.nix +++ b/system-config/services/containers/gitlab/default.nix @@ -18,12 +18,29 @@ "gitlab/oidc/secret" = {}; }; + services.openssh.ports = [ + 2222 + ]; + + networking.firewall.allowedTCPPorts = [ + 22 + 2222 + ]; + containers.gitlab = { autoStart = true; privateNetwork = true; hostAddress = "192.168.100.10"; localAddress = "192.168.100.16"; + + forwardPorts = [ + { + containerPort = 22; + hostPort = 22; + } + ]; + bindMounts = { "/etc/gitlab/data" = { hostPath = "/ssd1/Gitlab/data";