proper ssh port
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = lib.mkDefault true;
|
||||||
settings = {
|
settings = {
|
||||||
PermitRootLogin = lib.mkForce "no";
|
PermitRootLogin = lib.mkForce "no";
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
|
|||||||
@@ -17,12 +17,8 @@
|
|||||||
"gitea/dbpass" = {};
|
"gitea/dbpass" = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.openssh.ports = [
|
|
||||||
2222
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
22
|
2222
|
||||||
];
|
];
|
||||||
|
|
||||||
containers.gitea = {
|
containers.gitea = {
|
||||||
@@ -35,7 +31,7 @@
|
|||||||
forwardPorts = [
|
forwardPorts = [
|
||||||
{
|
{
|
||||||
containerPort = 22;
|
containerPort = 22;
|
||||||
hostPort = 22;
|
hostPort = 2222;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user