set up forgejo ports for ssh correctly
This commit is contained in:
parent
7693a3ccc0
commit
9bec44c636
1 changed files with 4 additions and 2 deletions
|
|
@ -1,7 +1,8 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
let
|
||||
dbname = "forgejo";
|
||||
ssh_port = 2224;
|
||||
ssh_port = 2225;
|
||||
http_port = 3000;
|
||||
domain = "new.git.cdaut.de";
|
||||
in
|
||||
{
|
||||
|
|
@ -19,6 +20,7 @@ in
|
|||
ROOT_URL = "https://${domain}";
|
||||
DOMAIN = domain;
|
||||
SSH_PORT = ssh_port;
|
||||
HTTP_PORT = http_port;
|
||||
# important because otherwise ssh doesn't seem to work…
|
||||
START_SSH_SERVER = true;
|
||||
BUILTIN_SSH_SERVER_USER = "git";
|
||||
|
|
@ -39,6 +41,6 @@ in
|
|||
ensureDatabases = [ dbname ];
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 3000 ssh_port ];
|
||||
networking.firewall.allowedTCPPorts = [ http_port ssh_port ];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue