From 60424d6ff264b88ee6d3b651de8875cd3d0061cd Mon Sep 17 00:00:00 2001 From: Lorenzo Good Date: Sun, 28 Dec 2025 21:01:24 -0600 Subject: [PATCH] Change gitea ssh port. --- common/services/gitea.nix | 10 ++++++++-- machines/lebesgue/config/configuration.nix | 1 + machines/lebesgue/config/routing.nix | 5 +++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/common/services/gitea.nix b/common/services/gitea.nix index b9a96f4..b60a41a 100644 --- a/common/services/gitea.nix +++ b/common/services/gitea.nix @@ -21,15 +21,20 @@ in { ssh-port = mkOption { type = lib.types.port; - default = 2222; + default = 22; description = '' - What external port to serve over. + Where ssh is available. ''; }; domain = mkOption { type = lib.types.str; }; + + ssh-domain = mkOption { + type = lib.types.str; + default = cfg.domain; + }; }; config = mkIf cfg.enable { @@ -49,6 +54,7 @@ in { HTTP_PORT = cfg.port; DOMAIN = cfg.domain; ROOT_URL = "https://${cfg.domain}"; + SSH_DOMAIN = cfg.ssh-domain; SSH_PORT = cfg.ssh-port; }; }; diff --git a/machines/lebesgue/config/configuration.nix b/machines/lebesgue/config/configuration.nix index 1e6bb38..9df77b6 100644 --- a/machines/lebesgue/config/configuration.nix +++ b/machines/lebesgue/config/configuration.nix @@ -17,6 +17,7 @@ services.forgejo = { enable = true; domain = "forge.foehammer.me"; + ssh-domain = "lebesgue"; }; services.vaultwarden = { diff --git a/machines/lebesgue/config/routing.nix b/machines/lebesgue/config/routing.nix index 35027d9..6d5c70a 100644 --- a/machines/lebesgue/config/routing.nix +++ b/machines/lebesgue/config/routing.nix @@ -8,6 +8,11 @@ reverse_proxy :${toString config.foehammer.services.vaultwarden.port} ''; }; + "goatcounter.foehammer.me" = { + extraConfig = '' + reverse_proxy :${toString config.foehammer.services.goatcounter.port} + ''; + }; "forge.foehammer.me" = { extraConfig = '' reverse_proxy :${toString config.foehammer.services.forgejo.port}