From 148b94959d9dee8e444a7e99e2bc0843cff76911 Mon Sep 17 00:00:00 2001 From: Adam French Date: Wed, 14 Oct 2026 16:34:35 +0100 Subject: [PATCH] Show the Tailscale SSH address as Gitea's clone URL SSH (22 and 2222) is no longer forwarded by the router; it is reached over the tailnet instead. SSH_DOMAIN only sets the clone URL Gitea displays. HTTPS clones through nginx at ROOT_URL stay public. Co-Authored-By: Claude Opus 5.5 --- gitea/config/app.ini.template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gitea/config/app.ini.template b/gitea/config/app.ini.template index c80b3dd..252ce37 100644 --- a/gitea/config/app.ini.template +++ b/gitea/config/app.ini.template @@ -20,6 +20,10 @@ ; 22 and cannot use the host's sshd, so Gitea runs its own Go SSH server. ; 2222 is published in docker-compose.yml; the deploy workflow clones over ; ssh://git@localhost:2222. +; SSH_DOMAIN is the Pi's Tailscale MagicDNS name, not the public domain: SSH +; (22 and 2222) is not forwarded by the router, so the SSH clone URL Gitea +; shows only works from a device on the tailnet. HTTPS clones go through +; nginx at ROOT_URL and stay public. ; REVERSE_PROXY_LIMIT = 1 / TRUSTED_PROXIES = * : trust exactly one hop of ; X-Forwarded-For, i.e. our nginx, so Gitea logs real client IPs. This is ; only safe because nginx is the sole edge. @@ -46,7 +50,7 @@ TEMP_PATH = /tmp/gitea/uploads [server] APP_DATA_PATH = /var/lib/gitea -SSH_DOMAIN = adam-french.co.uk +SSH_DOMAIN = stppi.tailf20278.ts.net HTTP_PORT = 3000 ROOT_URL = https://adam-french.co.uk/gitea/ DISABLE_SSH = false