mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2024-11-24 20:18:05 +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;
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue