change ssh settings, open http(s) ports

This commit is contained in:
Lgmrszd 2024-01-14 23:10:59 +03:00
parent fc19562e68
commit a26c8af6cf
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE

View file

@ -13,8 +13,13 @@
zramSwap.enable = true; zramSwap.enable = true;
networking.hostName = "lgm-vps1"; networking.hostName = "lgm-vps1";
networking.domain = "contaboserver.net"; networking.domain = "contaboserver.net";
services.openssh.enable = true; networking.firewall.allowedTCPPorts = [ 80 443 ];
services.openssh.ports = [ 37163 ]; services.openssh = {
enable = true;
ports = [ 37163 ];
settings.PermitRootLogin = "no";
settings.PasswordAuthentication = false;
};
services.endlessh-go = { services.endlessh-go = {
enable = true; enable = true;
@ -45,5 +50,4 @@
}; };
system.stateVersion = "23.11"; system.stateVersion = "23.11";
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOcHiU7AJfci41rk+CdON9oGkaMjOez1DzFN3NJFuSlC lgm@lgm-nixos'' ];
} }