Sync network redesign repo state and cutover artifacts
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
# ── CONFIG ────────────────────────────────────────────────────────────────────
|
||||
GITEA_HTTP_URL="http://10.5.1.6:3000" # ← local Gitea HTTP port (check TrueNAS app config)
|
||||
GITEA_HTTP_URL="http://10.5.30.6:3000" # ← local Gitea HTTP port (check TrueNAS app config)
|
||||
GITEA_SSH_PORT="2222" # ← Gitea SSH port
|
||||
GITEA_USER="fizzlepoof"
|
||||
GITEA_TOKEN="" # ← set this before use; regenerate with write:repository + write:user scopes
|
||||
@@ -61,7 +61,7 @@ else
|
||||
die "Gitea API returned HTTP ${HTTP_CODE}. Check token and URL."
|
||||
fi
|
||||
|
||||
REPO_URL="ssh://git@10.5.1.6:${GITEA_SSH_PORT}/${GITEA_USER}/${REPO_NAME}.git"
|
||||
REPO_URL="ssh://git@10.5.30.6:${GITEA_SSH_PORT}/${GITEA_USER}/${REPO_NAME}.git"
|
||||
|
||||
# ── 3. Init local repo ────────────────────────────────────────────────────────
|
||||
info "Setting up local repo at ${LOCAL_PATH}..."
|
||||
@@ -89,7 +89,7 @@ info "Exporting symmetric key to ${KEY_EXPORT_PATH}..."
|
||||
git-crypt export-key "$KEY_EXPORT_PATH"
|
||||
chmod 600 "$KEY_EXPORT_PATH"
|
||||
warn "BACK THIS KEY UP. Without it you cannot decrypt the repo on another machine."
|
||||
warn " scp root@10.5.1.6:${KEY_EXPORT_PATH} /safe/location/"
|
||||
warn " scp root@10.5.30.6:${KEY_EXPORT_PATH} /safe/location/"
|
||||
|
||||
# ── 6. .gitattributes — encrypt everything except meta files ─────────────────
|
||||
info "Writing .gitattributes..."
|
||||
|
||||
Reference in New Issue
Block a user