match gitea ssh ports

This commit is contained in:
2026-01-22 20:25:44 -06:00
parent 1238fa76db
commit 94a1ca970f

View File

@@ -30,7 +30,7 @@
forwardPorts = [ forwardPorts = [
{ {
containerPort = 22; containerPort = 2222;
hostPort = 2222; hostPort = 2222;
} }
]; ];
@@ -101,14 +101,16 @@
}; };
services.openssh = { services.openssh = {
enable = true; enable = true;
openFirewall = true;
settings = { settings = {
PermitRootLogin = lib.mkForce "no"; PermitRootLogin = lib.mkForce "no";
PasswordAuthentication = false; PasswordAuthentication = false;
KbdInteractiveAuthentication = false; KbdInteractiveAuthentication = false;
}; };
ports = [ 2222 ];
}; };
networking.firewall.allowedTCPPorts = [ 22 3000 ]; networking.firewall.allowedTCPPorts = [ 3000 ];
system.stateVersion = "24.11"; system.stateVersion = "24.11";
}; };