mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-14 15:48:21 +01:00
vps1: add second ssh listen port for forgejo
This commit is contained in:
parent
7754256b6f
commit
8699da4a85
2 changed files with 6 additions and 1 deletions
|
|
@ -32,9 +32,13 @@ in
|
|||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 37163 ];
|
||||
ports = [ 37163 22631 ];
|
||||
settings.PermitRootLogin = "no";
|
||||
settings.PasswordAuthentication = false;
|
||||
extraConfig = ''
|
||||
Match LocalPort 22631
|
||||
AllowUsers forgejo
|
||||
'';
|
||||
};
|
||||
|
||||
networking.nat.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue