diff --git a/configs/services/forgejo.nix b/configs/services/forgejo.nix index 46935e3..1ab8775 100644 --- a/configs/services/forgejo.nix +++ b/configs/services/forgejo.nix @@ -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 ]; }