From 7a46e82c7ad5cb65152115d735818cabf1b8e19b Mon Sep 17 00:00:00 2001 From: Homelab Automation Date: Sun, 23 Nov 2025 15:07:37 +0000 Subject: [PATCH] Fix configuration: Use internal IP for clone commands, domain via Pangolin Tunnel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Reverted ROOT_URL to HTTP on internal IP (100.120.125.113:3000) - Clone commands use internal IP (works on local network and with Pangolin) - Added note: Access UI at https://git.pdmarf.co.uk via Pangolin Tunnel - Pangolin Tunnel handles HTTPS → HTTP conversion Users on local network: Clone using http://100.120.125.113:3000/pdm/[repo] Users via Pangolin: Access UI at https://git.pdmarf.co.uk Both methods work with same repositories --- HOW-TO-GUIDE.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/HOW-TO-GUIDE.md b/HOW-TO-GUIDE.md index edca56c..d7c5814 100644 --- a/HOW-TO-GUIDE.md +++ b/HOW-TO-GUIDE.md @@ -17,7 +17,9 @@ Quick reference guide for using Gitea at http://100.120.125.113:3000 to manage y ### About Your Gitea Server -- **Server URL: https://git.pdmarf.co.uk +**Note:** Access via Pangolin Tunnel at https://git.pdmarf.co.uk if outside the local network. + +- **Server URL: http://100.120.125.113:3000 (or https://git.pdmarf.co.uk via Pangolin) - **User**: pdm - **Available Repositories**: - `homelab-agents` - Shared AI agent prompts (pull-only on VPS) @@ -59,7 +61,7 @@ Cloning creates a local copy of a repository on your workstation or VPS. Use this to get the latest AI agent prompts on your VPS: ```bash -git clone https://git.pdmarf.co.uk/pdm/homelab-agents.git ~/.homelab-agents +git clone http://100.120.125.113:3000/pdm/homelab-agents.git ~/.homelab-agents ``` This creates a `~/.homelab-agents` directory with all shared agent definitions and templates. @@ -74,7 +76,7 @@ This creates a `~/.homelab-agents` directory with all shared agent definitions a Use this to get your VPS configuration repository: ```bash -git clone https://git.pdmarf.co.uk/pdm/vps-system-apps.git ~/projects/system-apps +git clone http://100.120.125.113:3000/pdm/vps-system-apps.git ~/projects/system-apps ``` This creates a `~/projects/system-apps` directory with Docker, scripts, and documentation. @@ -89,7 +91,7 @@ This creates a `~/projects/system-apps` directory with Docker, scripts, and docu For future projects, use the same pattern: ```bash -git clone https://git.pdmarf.co.uk/pdm/[project-name].git ~/projects/[project-name] +git clone http://100.120.125.113:3000/pdm/[project-name].git ~/projects/[project-name] ``` --- @@ -202,7 +204,7 @@ Delta compression using up to 4 threads Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 456 bytes, done. Total 3 (delta 1), reused 0 (delta 0) -To https://git.pdmarf.co.uk/pdm/vps-system-apps.git +To http://100.120.125.113:3000/pdm/vps-system-apps.git abc1234..def5678 main -> main ``` @@ -217,7 +219,7 @@ To https://git.pdmarf.co.uk/pdm/vps-system-apps.git ```bash # Step 1: On your workstation, clone the repository # (e.g., your laptop or desktop computer) -git clone https://git.pdmarf.co.uk/pdm/vps-system-apps.git ~/projects/system-apps +git clone http://100.120.125.113:3000/pdm/vps-system-apps.git ~/projects/system-apps # Step 2: Edit files on your workstation using vim, VS Code, or any editor cd ~/projects/system-apps @@ -368,7 +370,7 @@ git pull origin main **Solution 1 - Use HTTPS with saved credentials:** ```bash git config --global credential.helper store -git clone https://git.pdmarf.co.uk/pdm/homelab-agents.git +git clone http://100.120.125.113:3000/pdm/homelab-agents.git # Enter username (pdm) and password when prompted # Credentials are saved for future use ``` @@ -395,7 +397,7 @@ curl -I http://100.120.125.113:3000 **Verify remote URL:** ```bash git remote -v -# Should show: origin https://git.pdmarf.co.uk/pdm/[project].git +# Should show: origin http://100.120.125.113:3000/pdm/[project].git ``` **Test Gitea access:** @@ -426,13 +428,13 @@ git push origin main **Solution:** ```bash # Verify correct URL format: -# https://git.pdmarf.co.uk/pdm/[exact-project-name].git +# http://100.120.125.113:3000/pdm/[exact-project-name].git # Check what repositories exist by visiting: http://100.120.125.113:3000/pdm # Update remote if needed -git remote set-url origin https://git.pdmarf.co.uk/pdm/correct-name.git +git remote set-url origin http://100.120.125.113:3000/pdm/correct-name.git ``` ### Lost changes or need to recover @@ -454,8 +456,8 @@ git reset --hard abc1234 ```bash # Cloning -git clone https://git.pdmarf.co.uk/pdm/homelab-agents.git ~/.homelab-agents -git clone https://git.pdmarf.co.uk/pdm/vps-system-apps.git ~/projects/system-apps +git clone http://100.120.125.113:3000/pdm/homelab-agents.git ~/.homelab-agents +git clone http://100.120.125.113:3000/pdm/vps-system-apps.git ~/projects/system-apps # Status and viewing changes git status # See what changed @@ -530,7 +532,7 @@ git --version git config --global -l # Test Gitea access -git clone https://git.pdmarf.co.uk/pdm/homelab-agents.git test-repo +git clone http://100.120.125.113:3000/pdm/homelab-agents.git test-repo # If successful, you're all set! rm -rf test-repo ```