Set Gitea's SSH_DOMAIN and DOMAIN from GITEA_SSH_DOMAIN in .env
Moving hosts meant hand-editing the live app.ini, which the template cannot reach once it exists. Gitea's environment-to-ini now writes the value on every start, so a move is a one-line .env change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -20,7 +20,9 @@
|
||||
; 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
|
||||
; SSH_DOMAIN and DOMAIN are not set here: they come from GITEA_SSH_DOMAIN in
|
||||
; ./.env (see docker-compose.yml). The value is the host'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.
|
||||
@@ -50,7 +52,6 @@ TEMP_PATH = /tmp/gitea/uploads
|
||||
|
||||
[server]
|
||||
APP_DATA_PATH = /var/lib/gitea
|
||||
SSH_DOMAIN = stpvm.tailf20278.ts.net
|
||||
HTTP_PORT = 3000
|
||||
ROOT_URL = https://adam-french.co.uk/gitea/
|
||||
DISABLE_SSH = false
|
||||
@@ -60,7 +61,6 @@ SSH_PORT = 2222
|
||||
SSH_LISTEN_PORT = 2222
|
||||
BUILTIN_SSH_SERVER_USER = git
|
||||
LFS_START_SERVER = true
|
||||
DOMAIN = stpvm.tailf20278.ts.net
|
||||
LFS_JWT_SECRET =
|
||||
OFFLINE_MODE = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user