From fecdda70d7fac93bde719fe38b7a4121e9c5adad Mon Sep 17 00:00:00 2001 From: xinyangli Date: Thu, 7 Dec 2023 00:00:30 +0800 Subject: [PATCH] massicot: add ssh to forgejo --- machines/massicot/services.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/machines/massicot/services.nix b/machines/massicot/services.nix index c81fe41..84322c1 100644 --- a/machines/massicot/services.nix +++ b/machines/massicot/services.nix @@ -58,6 +58,10 @@ in service.DISABLE_REGISTRATION = true; server = { ROOT_URL = "https://git.xinyang.life/"; + START_SSH_SERVER = true; + BUILTIN_SSH_SERVER_USER = "git"; + SSH_DOMAIN = "ssh.xinyang.life"; + SSH_PORT = 2222; }; repository = { ENABLE_PUSH_CREATE_USER = true; @@ -126,6 +130,6 @@ in }; - networking.firewall.allowedTCPPorts = [ 80 443 8448 ]; + networking.firewall.allowedTCPPorts = [ 80 443 2222 8448 ]; networking.firewall.allowedUDPPorts = [ 80 443 8448 ]; }