change ssh port to allow git+ssh for gitlab

This commit is contained in:
2024-11-23 23:50:52 -06:00
parent c2900f56bb
commit d60ba8e81f

View File

@@ -18,12 +18,29 @@
"gitlab/oidc/secret" = {}; "gitlab/oidc/secret" = {};
}; };
services.openssh.ports = [
2222
];
networking.firewall.allowedTCPPorts = [
22
2222
];
containers.gitlab = { containers.gitlab = {
autoStart = true; autoStart = true;
privateNetwork = true; privateNetwork = true;
hostAddress = "192.168.100.10"; hostAddress = "192.168.100.10";
localAddress = "192.168.100.16"; localAddress = "192.168.100.16";
forwardPorts = [
{
containerPort = 22;
hostPort = 22;
}
];
bindMounts = { bindMounts = {
"/etc/gitlab/data" = { "/etc/gitlab/data" = {
hostPath = "/ssd1/Gitlab/data"; hostPath = "/ssd1/Gitlab/data";