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