Fix configuration: Use internal IP for clone commands, domain via Pangolin Tunnel
- 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
This commit is contained in:
@@ -17,7 +17,9 @@ Quick reference guide for using Gitea at http://100.120.125.113:3000 to manage y
|
|||||||
|
|
||||||
### About Your Gitea Server
|
### 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
|
- **User**: pdm
|
||||||
- **Available Repositories**:
|
- **Available Repositories**:
|
||||||
- `homelab-agents` - Shared AI agent prompts (pull-only on VPS)
|
- `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:
|
Use this to get the latest AI agent prompts on your VPS:
|
||||||
|
|
||||||
```bash
|
```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.
|
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:
|
Use this to get your VPS configuration repository:
|
||||||
|
|
||||||
```bash
|
```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.
|
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:
|
For future projects, use the same pattern:
|
||||||
|
|
||||||
```bash
|
```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.
|
Compressing objects: 100% (3/3), done.
|
||||||
Writing objects: 100% (3/3), 456 bytes, done.
|
Writing objects: 100% (3/3), 456 bytes, done.
|
||||||
Total 3 (delta 1), reused 0 (delta 0)
|
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
|
abc1234..def5678 main -> main
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -217,7 +219,7 @@ To https://git.pdmarf.co.uk/pdm/vps-system-apps.git
|
|||||||
```bash
|
```bash
|
||||||
# Step 1: On your workstation, clone the repository
|
# Step 1: On your workstation, clone the repository
|
||||||
# (e.g., your laptop or desktop computer)
|
# (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
|
# Step 2: Edit files on your workstation using vim, VS Code, or any editor
|
||||||
cd ~/projects/system-apps
|
cd ~/projects/system-apps
|
||||||
@@ -368,7 +370,7 @@ git pull origin main
|
|||||||
**Solution 1 - Use HTTPS with saved credentials:**
|
**Solution 1 - Use HTTPS with saved credentials:**
|
||||||
```bash
|
```bash
|
||||||
git config --global credential.helper store
|
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
|
# Enter username (pdm) and password when prompted
|
||||||
# Credentials are saved for future use
|
# Credentials are saved for future use
|
||||||
```
|
```
|
||||||
@@ -395,7 +397,7 @@ curl -I http://100.120.125.113:3000
|
|||||||
**Verify remote URL:**
|
**Verify remote URL:**
|
||||||
```bash
|
```bash
|
||||||
git remote -v
|
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:**
|
**Test Gitea access:**
|
||||||
@@ -426,13 +428,13 @@ git push origin main
|
|||||||
**Solution:**
|
**Solution:**
|
||||||
```bash
|
```bash
|
||||||
# Verify correct URL format:
|
# 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:
|
# Check what repositories exist by visiting:
|
||||||
http://100.120.125.113:3000/pdm
|
http://100.120.125.113:3000/pdm
|
||||||
|
|
||||||
# Update remote if needed
|
# 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
|
### Lost changes or need to recover
|
||||||
@@ -454,8 +456,8 @@ git reset --hard abc1234
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Cloning
|
# Cloning
|
||||||
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
|
||||||
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
|
||||||
|
|
||||||
# Status and viewing changes
|
# Status and viewing changes
|
||||||
git status # See what changed
|
git status # See what changed
|
||||||
@@ -530,7 +532,7 @@ git --version
|
|||||||
git config --global -l
|
git config --global -l
|
||||||
|
|
||||||
# Test Gitea access
|
# 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!
|
# If successful, you're all set!
|
||||||
rm -rf test-repo
|
rm -rf test-repo
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user