Show the Tailscale SSH address as Gitea's clone URL
Test and deploy / test (push) Successful in 1m38s
Test and deploy / deploy (push) Successful in 13s

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 <[email protected]>
This commit is contained in:
2026-10-14 16:45:49 +01:00
co-authored by Claude Opus 5.5
parent da2ab9fb17
commit 148b94959d
+5 -1
View File
@@ -20,6 +20,10 @@
; 22 and cannot use the host's sshd, so Gitea runs its own Go SSH server. ; 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 ; 2222 is published in docker-compose.yml; the deploy workflow clones over
; ssh://git@localhost:2222. ; 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 ; 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 ; X-Forwarded-For, i.e. our nginx, so Gitea logs real client IPs. This is
; only safe because nginx is the sole edge. ; only safe because nginx is the sole edge.
@@ -46,7 +50,7 @@ TEMP_PATH = /tmp/gitea/uploads
[server] [server]
APP_DATA_PATH = /var/lib/gitea APP_DATA_PATH = /var/lib/gitea
SSH_DOMAIN = adam-french.co.uk SSH_DOMAIN = stppi.tailf20278.ts.net
HTTP_PORT = 3000 HTTP_PORT = 3000
ROOT_URL = https://adam-french.co.uk/gitea/ ROOT_URL = https://adam-french.co.uk/gitea/
DISABLE_SSH = false DISABLE_SSH = false