Only expose ssh access to forgejo over tailscale
This commit is contained in:
parent
c954c32ae1
commit
195e66b2c7
|
@ -7,10 +7,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
satellite.cloudflared.at.git.port = config.satellite.ports.forgejo;
|
satellite.cloudflared.at.git.port = config.satellite.ports.forgejo;
|
||||||
satellite.cloudflared.at."ssh.git" = {
|
|
||||||
protocol = "ssh";
|
# Add CNAME record for ssh access. Unlike the http interface,
|
||||||
port = 22; # default ssh port
|
# this will only get exposed over tailscale, so it is safe.
|
||||||
};
|
satellite.dns.records = [
|
||||||
|
{
|
||||||
|
type = "CNAME";
|
||||||
|
zone = config.satellite.dns.domain;
|
||||||
|
at = "ssh.git";
|
||||||
|
to = config.networking.hostName;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -29,11 +36,7 @@
|
||||||
HTTP_PORT = config.satellite.cloudflared.at.git.port;
|
HTTP_PORT = config.satellite.cloudflared.at.git.port;
|
||||||
ROOT_URL = config.satellite.cloudflared.at.git.url;
|
ROOT_URL = config.satellite.cloudflared.at.git.url;
|
||||||
LANDING_PAGE = "prescientmoon"; # Make my profile the landing page
|
LANDING_PAGE = "prescientmoon"; # Make my profile the landing page
|
||||||
|
SSH_DOMAIN = "ssh.${config.satellite.cloudflared.at.git.host}";
|
||||||
# START_SSH_SERVER = true;
|
|
||||||
# BUILTIN_SSH_SERVER_USER = "git";
|
|
||||||
# SSH_LISTEN_PORT = config.satellite.ports.forgejo-ssh;
|
|
||||||
SSH_DOMAIN = config.satellite.cloudflared.at."ssh.git".host;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
cron.ENABLED = true;
|
cron.ENABLED = true;
|
||||||
|
|
Loading…
Reference in a new issue