mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2024-12-22 16:09:50 +01:00
change ssh settings, open http(s) ports
This commit is contained in:
parent
fc19562e68
commit
a26c8af6cf
1 changed files with 7 additions and 3 deletions
|
@ -13,8 +13,13 @@
|
|||
zramSwap.enable = true;
|
||||
networking.hostName = "lgm-vps1";
|
||||
networking.domain = "contaboserver.net";
|
||||
services.openssh.enable = true;
|
||||
services.openssh.ports = [ 37163 ];
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 37163 ];
|
||||
settings.PermitRootLogin = "no";
|
||||
settings.PasswordAuthentication = false;
|
||||
};
|
||||
|
||||
services.endlessh-go = {
|
||||
enable = true;
|
||||
|
@ -45,5 +50,4 @@
|
|||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOcHiU7AJfci41rk+CdON9oGkaMjOez1DzFN3NJFuSlC lgm@lgm-nixos'' ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue