1
Fork 0

Set up forgejo ssh

This commit is contained in:
prescientmoon 2024-09-11 16:30:19 +02:00
parent 861f2e81e2
commit a94ba0499d
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U
4 changed files with 75 additions and 43 deletions
hosts/nixos/lapetus/services

View file

@ -7,6 +7,10 @@
};
satellite.cloudflared.at.git.port = config.satellite.ports.forgejo;
satellite.cloudflared.at."ssh.git" = {
protocol = "ssh";
port = config.satellite.ports.forgejo-ssh;
};
services.forgejo = {
enable = true;
@ -29,6 +33,8 @@
HTTP_PORT = config.satellite.cloudflared.at.git.port;
ROOT_URL = config.satellite.cloudflared.at.git.url;
LANDING_PAGE = "prescientmoon"; # Make my profile the landing page
SSH_DOMAIN = config.satellite.cloudflared.at."ssh.git".host;
SSH_PORT = config.satellite.ports.forgejo-ssh;
};
cron.ENABLED = true;
@ -45,9 +51,7 @@
repository = {
DISABLE_STARS = true;
DISABLED_REPO_UNITS = "";
DEFAULT_REPO_UNITS = lib.strings.concatStringsSep "," [
"repo.code"
];
DEFAULT_REPO_UNITS = lib.strings.concatStringsSep "," [ "repo.code" ];
};
};
};