vps1: add second ssh listen port for forgejo

This commit is contained in:
Lgmrszd 2024-05-12 03:27:02 +03:00
parent 7754256b6f
commit 8699da4a85
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
2 changed files with 6 additions and 1 deletions

View file

@ -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;

View file

@ -39,6 +39,7 @@ in
ROOT_URL = "https://${srv.DOMAIN}/";
HTTP_ADDR = "127.0.0.1";
HTTP_PORT = 3001;
SSH_PORT = 22631;
};
DEFAULT = {
APP_NAME = "Lgmrszd's git";