Change gitea ssh port.

This commit is contained in:
Lorenzo Good 2025-12-28 21:01:24 -06:00
parent 7d90587392
commit 60424d6ff2
Signed by: lorenzo
GPG key ID: 7FCD64BD81180ED0
3 changed files with 14 additions and 2 deletions

View file

@ -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;
};
};