Update Gitea references from 192.168.88.200:3000 to 192.168.88.27:3002 (Docker migration)

This commit is contained in:
Automation
2026-04-25 18:05:05 -05:00
parent b792d5bf41
commit 7b38a5af31
22 changed files with 68 additions and 68 deletions
+2 -2
View File
@@ -149,7 +149,7 @@ ssh jgitta@192.168.88.41 # ThinkStation
| apache.jgitta.com | 192.168.88.27:8383 | Guacamole | | apache.jgitta.com | 192.168.88.27:8383 | Guacamole |
| notes.jgitta.com | 192.168.88.27:3010 | Karakeep | | notes.jgitta.com | 192.168.88.27:3010 | Karakeep |
| links.jgitta.com | 192.168.88.27:3015 | Linkwarden | | links.jgitta.com | 192.168.88.27:3015 | Linkwarden |
| gitea.jgitta.com | 192.168.88.200:3000 | — | | gitea.jgitta.com | 192.168.88.27:3002 | — |
| status.jgitta.com | 192.168.88.27:3001 | Uptime Kuma, internal_only | | status.jgitta.com | 192.168.88.27:3001 | Uptime Kuma, internal_only |
| grafana.jgitta.com | 192.168.88.27:3020 | internal_only | | grafana.jgitta.com | 192.168.88.27:3020 | internal_only |
| glances.jgitta.com | 192.168.88.27:61208 | internal_only | | glances.jgitta.com | 192.168.88.27:61208 | internal_only |
@@ -239,7 +239,7 @@ Run as: `sudo sqlite3 /var/lib/jellyfin/data/jellyfin.db "..."`
If a `Recordings2` library appears, it means LiveTV's recording path in `/etc/jellyfin/livetv.xml` doesn't match the Recordings library path. Fix via API (remove/add paths) rather than editing XML files. If a `Recordings2` library appears, it means LiveTV's recording path in `/etc/jellyfin/livetv.xml` doesn't match the Recordings library path. Fix via API (remove/add paths) rather than editing XML files.
## Dotfiles ## Dotfiles
- Gitea: `http://192.168.88.200:3000/jgitta/dotfiles.git` - Gitea: `http://192.168.88.27:3002/jgitta/dotfiles.git`
- Token (read/write): `56ac53def371df34d8f9c4b5580b28d4f62ab1ab` - Token (read/write): `56ac53def371df34d8f9c4b5580b28d4f62ab1ab`
- Includes: micro config, bash aliases, `update-dotfiles` alias - Includes: micro config, bash aliases, `update-dotfiles` alias
- Preferred editor: `micro` (never nano) - Preferred editor: `micro` (never nano)
+5 -5
View File
@@ -2,7 +2,7 @@
**Status**: All documentation created locally **Status**: All documentation created locally
**Location**: `/home/jgitta/Documents/Claude/Projects/Homelab Infrastructure/` **Location**: `/home/jgitta/Documents/Claude/Projects/Homelab Infrastructure/`
**Gitea Repo**: http://192.168.88.200:3000/jgitta/homelab-configs **Gitea Repo**: http://192.168.88.27:3002/jgitta/homelab-configs
--- ---
@@ -78,7 +78,7 @@ bash /home/jgitta/Documents/Claude/Projects/Homelab\ Infrastructure/gitea-centra
cd /home/jgitta/Documents/Claude/Projects/Homelab\ Infrastructure cd /home/jgitta/Documents/Claude/Projects/Homelab\ Infrastructure
# Add Gitea remote # Add Gitea remote
git remote add gitea http://192.168.88.200:3000/jgitta/homelab-configs.git git remote add gitea http://192.168.88.27:3002/jgitta/homelab-configs.git
# Push all documentation # Push all documentation
git branch -M main git branch -M main
@@ -87,7 +87,7 @@ git push -u gitea main
### Option 3: Via Gitea Web UI ### Option 3: Via Gitea Web UI
1. Go to: http://192.168.88.200:3000 1. Go to: http://192.168.88.27:3002
2. Create new "docs" branch 2. Create new "docs" branch
3. Upload files using web interface 3. Upload files using web interface
@@ -123,7 +123,7 @@ git push -u gitea main
## 🎯 What's in Gitea Now ## 🎯 What's in Gitea Now
Currently in **http://192.168.88.200:3000/jgitta/homelab-configs**: Currently in **http://192.168.88.27:3002/jgitta/homelab-configs**:
``` ```
homelab-configs/ homelab-configs/
@@ -193,7 +193,7 @@ homelab-configs/
1. Push all documentation to Gitea 1. Push all documentation to Gitea
```bash ```bash
cd ~/Documents/Claude/Projects/Homelab\ Infrastructure cd ~/Documents/Claude/Projects/Homelab\ Infrastructure
git remote add gitea http://192.168.88.200:3000/jgitta/homelab-configs.git git remote add gitea http://192.168.88.27:3002/jgitta/homelab-configs.git
git branch -M main git branch -M main
git push gitea main git push gitea main
``` ```
+1 -1
View File
@@ -70,5 +70,5 @@ homelab-configs/
--- ---
**Repository**: http://192.168.88.200:3000/jgitta/homelab-configs **Repository**: http://192.168.88.27:3002/jgitta/homelab-configs
**Last Updated**: April 25, 2026 **Last Updated**: April 25, 2026
+2 -2
View File
@@ -93,7 +93,7 @@
| notes.jgitta.com | 192.168.88.27:3010 | Karakeep | | notes.jgitta.com | 192.168.88.27:3010 | Karakeep |
| links.jgitta.com | 192.168.88.27:3015 | Linkwarden | | links.jgitta.com | 192.168.88.27:3015 | Linkwarden |
| ai.jgitta.com | 192.168.88.27:3000 | Open WebUI | | ai.jgitta.com | 192.168.88.27:3000 | Open WebUI |
| gitea.jgitta.com | 192.168.88.200:3000 | — | | gitea.jgitta.com | 192.168.88.27:3002 | — |
| status.jgitta.com | 192.168.88.27:3001 | Uptime Kuma, internal_only | | status.jgitta.com | 192.168.88.27:3001 | Uptime Kuma, internal_only |
| grafana.jgitta.com | 192.168.88.27:3020 | internal_only | | grafana.jgitta.com | 192.168.88.27:3020 | internal_only |
| glances.jgitta.com | 192.168.88.27:61208 | internal_only | | glances.jgitta.com | 192.168.88.27:61208 | internal_only |
@@ -182,7 +182,7 @@ Run as: `sudo sqlite3 /var/lib/jellyfin/data/jellyfin.db "..."`
If a `Recordings2` library appears, it means LiveTV's recording path in `/etc/jellyfin/livetv.xml` doesn't match the Recordings library path. Fix via API (remove/add paths) rather than editing XML files. If a `Recordings2` library appears, it means LiveTV's recording path in `/etc/jellyfin/livetv.xml` doesn't match the Recordings library path. Fix via API (remove/add paths) rather than editing XML files.
## Dotfiles ## Dotfiles
- Gitea: `http://192.168.88.200:3000/jgitta/dotfiles.git` - Gitea: `http://192.168.88.27:3002/jgitta/dotfiles.git`
- Token (read/write): `56ac53def371df34d8f9c4b5580b28d4f62ab1ab` - Token (read/write): `56ac53def371df34d8f9c4b5580b28d4f62ab1ab`
- Includes: micro config, bash aliases, `update-dotfiles` alias - Includes: micro config, bash aliases, `update-dotfiles` alias
- Preferred editor: `micro` (never nano) - Preferred editor: `micro` (never nano)
@@ -30,7 +30,7 @@ All VMs: automatically pull latest on startup
### Step 1: Create the Gitea Repository (2 minutes) ### Step 1: Create the Gitea Repository (2 minutes)
1. Go to: **http://192.168.88.200:3000** 1. Go to: **http://192.168.88.27:3002**
2. Click **+** (top right) → **New Repository** 2. Click **+** (top right) → **New Repository**
3. Fill in: 3. Fill in:
- **Repository name**: `homelab-configs` - **Repository name**: `homelab-configs`
@@ -65,7 +65,7 @@ git add .
git commit -m "Initial homelab-configs setup" git commit -m "Initial homelab-configs setup"
# Add remote and push # Add remote and push
git remote add origin http://192.168.88.200:3000/jgitta/homelab-configs.git git remote add origin http://192.168.88.27:3002/jgitta/homelab-configs.git
git branch -M main git branch -M main
git push -u origin main git push -u origin main
``` ```
@@ -92,7 +92,7 @@ entrypoint: /bin/sh
command: | command: |
-c " -c "
mkdir -p /tmp/homelab-configs mkdir -p /tmp/homelab-configs
git clone http://192.168.88.200:3000/jgitta/homelab-configs.git /tmp/homelab-configs || true git clone http://192.168.88.27:3002/jgitta/homelab-configs.git /tmp/homelab-configs || true
mkdir -p /root/.opencode mkdir -p /root/.opencode
cp /tmp/homelab-configs/opencode/config.json /root/.opencode/config.json cp /tmp/homelab-configs/opencode/config.json /root/.opencode/config.json
exec opencode exec opencode
@@ -130,7 +130,7 @@ You should see:
```bash ```bash
# Clone the repo (or update if you have it) # Clone the repo (or update if you have it)
git clone http://192.168.88.200:3000/jgitta/homelab-configs.git git clone http://192.168.88.27:3002/jgitta/homelab-configs.git
cd homelab-configs cd homelab-configs
# Edit the config # Edit the config
@@ -180,14 +180,14 @@ homelab-configs/
### Check if Repository Created: ### Check if Repository Created:
```bash ```bash
curl http://192.168.88.200:3000/api/v1/repos/jgitta/homelab-configs \ curl http://192.168.88.27:3002/api/v1/repos/jgitta/homelab-configs \
2>/dev/null | jq '.name' 2>/dev/null | jq '.name'
# Should output: homelab-configs # Should output: homelab-configs
``` ```
### Check if Configs Are Accessible: ### Check if Configs Are Accessible:
```bash ```bash
curl http://192.168.88.200:3000/jgitta/homelab-configs/raw/branch/main/opencode/config.json \ curl http://192.168.88.27:3002/jgitta/homelab-configs/raw/branch/main/opencode/config.json \
2>/dev/null | jq '.apiBase' 2>/dev/null | jq '.apiBase'
# Should output: "http://192.168.88.27:4000" # Should output: "http://192.168.88.27:4000"
``` ```
@@ -290,7 +290,7 @@ git push origin main
``` ```
### "Could not fetch configs from Gitea" ### "Could not fetch configs from Gitea"
- Check network access: `curl http://192.168.88.200:3000/` - Check network access: `curl http://192.168.88.27:3002/`
- Verify Gitea repo exists and is public (or accessible) - Verify Gitea repo exists and is public (or accessible)
- Check docker-compose logs: `docker-compose logs opencode` - Check docker-compose logs: `docker-compose logs opencode`
+1 -1
View File
@@ -196,7 +196,7 @@ services:
entrypoint: /bin/sh entrypoint: /bin/sh
command: | command: |
-c " -c "
git clone http://192.168.88.200:3000/jgitta/homelab-configs.git /tmp/configs git clone http://192.168.88.27:3002/jgitta/homelab-configs.git /tmp/configs
cp /tmp/configs/opencode/config.json ~/.opencode/config.json cp /tmp/configs/opencode/config.json ~/.opencode/config.json
exec ~/.opencode/bin/opencode exec ~/.opencode/bin/opencode
" "
+2 -2
View File
@@ -7,7 +7,7 @@
-**LiteLLM Container**: Running on docker-server (siklos, 192.168.88.27:4000) -**LiteLLM Container**: Running on docker-server (siklos, 192.168.88.27:4000)
-**Docker Compose**: Configured and ready at `/opt/litellm/` -**Docker Compose**: Configured and ready at `/opt/litellm/`
-**Configuration**: Git initialized with config files in `/opt/litellm/config/` -**Configuration**: Git initialized with config files in `/opt/litellm/config/`
-**Gitea**: Ready at http://192.168.88.200:3000 for repository management -**Gitea**: Ready at http://192.168.88.27:3002 for repository management
-**All VMs**: Network access confirmed to docker-server -**All VMs**: Network access confirmed to docker-server
--- ---
@@ -162,7 +162,7 @@ Once tested, you can:
```bash ```bash
# Create litellm-config repo in Gitea, then: # Create litellm-config repo in Gitea, then:
cd /opt/litellm cd /opt/litellm
git remote add gitea http://192.168.88.200:3000/jgitta/litellm-config.git git remote add gitea http://192.168.88.27:3002/jgitta/litellm-config.git
git pull gitea master git pull gitea master
``` ```
+2 -2
View File
@@ -31,7 +31,7 @@ Master Key: litellm-local-key-change-in-production (⚠️ CHANGE THIS in produc
**Why?** This centralizes your API key management in version control. Updates to one place affect all VMs. **Why?** This centralizes your API key management in version control. Updates to one place affect all VMs.
1. Open: **http://192.168.88.200:3000** (Your Gitea instance) 1. Open: **http://192.168.88.27:3002** (Your Gitea instance)
2. Login with your account (jgitta) 2. Login with your account (jgitta)
3. Click **"+"** icon (top right) → **"New Repository"** 3. Click **"+"** icon (top right) → **"New Repository"**
4. Fill in: 4. Fill in:
@@ -147,7 +147,7 @@ docker-server (siklos @ 192.168.88.27)
├── litellm_config.yaml # Model definitions & API keys ├── litellm_config.yaml # Model definitions & API keys
└── README.md # Config documentation └── README.md # Config documentation
Gitea (gitea @ 192.168.88.200:3000) Gitea (gitea @ 192.168.88.27:3002)
└── jgitta/litellm-config/ └── jgitta/litellm-config/
└── (same files as above) └── (same files as above)
``` ```
@@ -3,7 +3,7 @@
# This configuration pulls OpenCode config from centralized Gitea repository # This configuration pulls OpenCode config from centralized Gitea repository
# instead of managing per-VM configuration files # instead of managing per-VM configuration files
# #
# Updated for centralized config management via http://192.168.88.200:3000 # Updated for centralized config management via http://192.168.88.27:3002
version: '3.8' version: '3.8'
@@ -40,7 +40,7 @@ services:
mkdir -p /tmp/homelab-configs mkdir -p /tmp/homelab-configs
# Clone the central configs repo # Clone the central configs repo
if git clone http://192.168.88.200:3000/jgitta/homelab-configs.git /tmp/homelab-configs; then if git clone http://192.168.88.27:3002/jgitta/homelab-configs.git /tmp/homelab-configs; then
echo '✅ Configuration fetched successfully' echo '✅ Configuration fetched successfully'
else else
echo '⚠️ Could not fetch configs from Gitea, using defaults' echo '⚠️ Could not fetch configs from Gitea, using defaults'
+5 -5
View File
@@ -3,7 +3,7 @@
**VM**: next (Nextcloud) @ 192.168.88.62 **VM**: next (Nextcloud) @ 192.168.88.62
**OpenCode**: Running in Docker **OpenCode**: Running in Docker
**API Gateway**: LiteLLM @ 192.168.88.27:4000 **API Gateway**: LiteLLM @ 192.168.88.27:4000
**Config Source**: Gitea @ 192.168.88.200:3000 **Config Source**: Gitea @ 192.168.88.27:3002
--- ---
@@ -70,7 +70,7 @@ docker exec opencode curl -s http://192.168.88.27:4000/models \
### 2.2 Can OpenCode Reach Gitea? ### 2.2 Can OpenCode Reach Gitea?
```bash ```bash
docker exec opencode curl -s http://192.168.88.200:3000/api/v1/version | jq '.version' docker exec opencode curl -s http://192.168.88.27:3002/api/v1/version | jq '.version'
# Expected output: "1.21.4" # Expected output: "1.21.4"
``` ```
@@ -173,7 +173,7 @@ opencode
On your workstation: On your workstation:
```bash ```bash
# Clone the homelab-configs repo # Clone the homelab-configs repo
git clone http://192.168.88.200:3000/jgitta/homelab-configs.git git clone http://192.168.88.27:3002/jgitta/homelab-configs.git
cd homelab-configs cd homelab-configs
# Edit the config to use Claude instead # Edit the config to use Claude instead
@@ -233,7 +233,7 @@ docker exec opencode curl -s http://192.168.88.27:4000/models \
echo "" echo ""
echo "Test 4: Gitea Reachability" echo "Test 4: Gitea Reachability"
docker exec opencode curl -s http://192.168.88.200:3000/api/v1/version | jq '.version' docker exec opencode curl -s http://192.168.88.27:3002/api/v1/version | jq '.version'
# Expected: "1.21.4" # Expected: "1.21.4"
echo "" echo ""
@@ -258,7 +258,7 @@ echo "✅ All tests completed!"
docker-compose logs opencode | grep -i "fetch\|clone" docker-compose logs opencode | grep -i "fetch\|clone"
# Check if Gitea is accessible # Check if Gitea is accessible
curl http://192.168.88.200:3000/ curl http://192.168.88.27:3002/
# If fails, Gitea might be down # If fails, Gitea might be down
# Manually update the config # Manually update the config
+7 -7
View File
@@ -30,7 +30,7 @@ All VMs: automatically pull latest on startup
### Step 1: Create the Gitea Repository (2 minutes) ### Step 1: Create the Gitea Repository (2 minutes)
1. Go to: **http://192.168.88.200:3000** 1. Go to: **http://192.168.88.27:3002**
2. Click **+** (top right) → **New Repository** 2. Click **+** (top right) → **New Repository**
3. Fill in: 3. Fill in:
- **Repository name**: `homelab-configs` - **Repository name**: `homelab-configs`
@@ -65,7 +65,7 @@ git add .
git commit -m "Initial homelab-configs setup" git commit -m "Initial homelab-configs setup"
# Add remote and push # Add remote and push
git remote add origin http://192.168.88.200:3000/jgitta/homelab-configs.git git remote add origin http://192.168.88.27:3002/jgitta/homelab-configs.git
git branch -M main git branch -M main
git push -u origin main git push -u origin main
``` ```
@@ -92,7 +92,7 @@ entrypoint: /bin/sh
command: | command: |
-c " -c "
mkdir -p /tmp/homelab-configs mkdir -p /tmp/homelab-configs
git clone http://192.168.88.200:3000/jgitta/homelab-configs.git /tmp/homelab-configs || true git clone http://192.168.88.27:3002/jgitta/homelab-configs.git /tmp/homelab-configs || true
mkdir -p /root/.opencode mkdir -p /root/.opencode
cp /tmp/homelab-configs/opencode/config.json /root/.opencode/config.json cp /tmp/homelab-configs/opencode/config.json /root/.opencode/config.json
exec opencode exec opencode
@@ -130,7 +130,7 @@ You should see:
```bash ```bash
# Clone the repo (or update if you have it) # Clone the repo (or update if you have it)
git clone http://192.168.88.200:3000/jgitta/homelab-configs.git git clone http://192.168.88.27:3002/jgitta/homelab-configs.git
cd homelab-configs cd homelab-configs
# Edit the config # Edit the config
@@ -180,14 +180,14 @@ homelab-configs/
### Check if Repository Created: ### Check if Repository Created:
```bash ```bash
curl http://192.168.88.200:3000/api/v1/repos/jgitta/homelab-configs \ curl http://192.168.88.27:3002/api/v1/repos/jgitta/homelab-configs \
2>/dev/null | jq '.name' 2>/dev/null | jq '.name'
# Should output: homelab-configs # Should output: homelab-configs
``` ```
### Check if Configs Are Accessible: ### Check if Configs Are Accessible:
```bash ```bash
curl http://192.168.88.200:3000/jgitta/homelab-configs/raw/branch/main/opencode/config.json \ curl http://192.168.88.27:3002/jgitta/homelab-configs/raw/branch/main/opencode/config.json \
2>/dev/null | jq '.apiBase' 2>/dev/null | jq '.apiBase'
# Should output: "http://192.168.88.27:4000" # Should output: "http://192.168.88.27:4000"
``` ```
@@ -290,7 +290,7 @@ git push origin main
``` ```
### "Could not fetch configs from Gitea" ### "Could not fetch configs from Gitea"
- Check network access: `curl http://192.168.88.200:3000/` - Check network access: `curl http://192.168.88.27:3002/`
- Verify Gitea repo exists and is public (or accessible) - Verify Gitea repo exists and is public (or accessible)
- Check docker-compose logs: `docker-compose logs opencode` - Check docker-compose logs: `docker-compose logs opencode`
+4 -4
View File
@@ -9,7 +9,7 @@
set -e set -e
# Configuration # Configuration
GITEA_URL="http://192.168.88.200:3000" GITEA_URL="http://192.168.88.27:3002"
GITEA_USER="jgitta" GITEA_USER="jgitta"
REPO_NAME="homelab-configs" REPO_NAME="homelab-configs"
LITELLM_API="http://192.168.88.27:4000" LITELLM_API="http://192.168.88.27:4000"
@@ -167,7 +167,7 @@ volumes:
| Service | URL/IP | Purpose | | Service | URL/IP | Purpose |
|---------|--------|---------| |---------|--------|---------|
| Gitea | http://192.168.88.200:3000 | Central config repository | | Gitea | http://192.168.88.27:3002 | Central config repository |
| LiteLLM API | http://192.168.88.27:4000 | Unified AI model gateway | | LiteLLM API | http://192.168.88.27:4000 | Unified AI model gateway |
| Nextcloud (next) | 192.168.88.62 | Running OpenCode | | Nextcloud (next) | 192.168.88.62 | Running OpenCode |
| Docker Server (siklos) | 192.168.88.27 | Hosting LiteLLM | | Docker Server (siklos) | 192.168.88.27 | Hosting LiteLLM |
@@ -206,7 +206,7 @@ To add a new service to centralized config:
**Last Updated**: April 25, 2026 **Last Updated**: April 25, 2026
**Maintained By**: jgitta **Maintained By**: jgitta
**Repository**: http://192.168.88.200:3000/jgitta/homelab-configs **Repository**: http://192.168.88.27:3002/jgitta/homelab-configs
EOF EOF
echo -e "${GREEN}✅ Created README.md${NC}" echo -e "${GREEN}✅ Created README.md${NC}"
@@ -273,7 +273,7 @@ services:
command: | command: |
-c " -c "
mkdir -p /tmp/configs mkdir -p /tmp/configs
git clone http://192.168.88.200:3000/jgitta/homelab-configs.git /tmp/configs || true git clone http://192.168.88.27:3002/jgitta/homelab-configs.git /tmp/configs || true
mkdir -p /root/.opencode mkdir -p /root/.opencode
cp /tmp/configs/opencode/config.json /root/.opencode/config.json cp /tmp/configs/opencode/config.json /root/.opencode/config.json
exec opencode exec opencode
+2 -2
View File
@@ -7,7 +7,7 @@
-**LiteLLM Container**: Running on docker-server (siklos, 192.168.88.27:4000) -**LiteLLM Container**: Running on docker-server (siklos, 192.168.88.27:4000)
-**Docker Compose**: Configured and ready at `/opt/litellm/` -**Docker Compose**: Configured and ready at `/opt/litellm/`
-**Configuration**: Git initialized with config files in `/opt/litellm/config/` -**Configuration**: Git initialized with config files in `/opt/litellm/config/`
-**Gitea**: Ready at http://192.168.88.200:3000 for repository management -**Gitea**: Ready at http://192.168.88.27:3002 for repository management
-**All VMs**: Network access confirmed to docker-server -**All VMs**: Network access confirmed to docker-server
--- ---
@@ -162,7 +162,7 @@ Once tested, you can:
```bash ```bash
# Create litellm-config repo in Gitea, then: # Create litellm-config repo in Gitea, then:
cd /opt/litellm cd /opt/litellm
git remote add gitea http://192.168.88.200:3000/jgitta/litellm-config.git git remote add gitea http://192.168.88.27:3002/jgitta/litellm-config.git
git pull gitea master git pull gitea master
``` ```
+2 -2
View File
@@ -31,7 +31,7 @@ Master Key: litellm-local-key-change-in-production (⚠️ CHANGE THIS in produc
**Why?** This centralizes your API key management in version control. Updates to one place affect all VMs. **Why?** This centralizes your API key management in version control. Updates to one place affect all VMs.
1. Open: **http://192.168.88.200:3000** (Your Gitea instance) 1. Open: **http://192.168.88.27:3002** (Your Gitea instance)
2. Login with your account (jgitta) 2. Login with your account (jgitta)
3. Click **"+"** icon (top right) → **"New Repository"** 3. Click **"+"** icon (top right) → **"New Repository"**
4. Fill in: 4. Fill in:
@@ -147,7 +147,7 @@ docker-server (siklos @ 192.168.88.27)
├── litellm_config.yaml # Model definitions & API keys ├── litellm_config.yaml # Model definitions & API keys
└── README.md # Config documentation └── README.md # Config documentation
Gitea (gitea @ 192.168.88.200:3000) Gitea (gitea @ 192.168.88.27:3002)
└── jgitta/litellm-config/ └── jgitta/litellm-config/
└── (same files as above) └── (same files as above)
``` ```
+2 -2
View File
@@ -7,7 +7,7 @@
-**LiteLLM Container**: Running on docker-server (siklos, 192.168.88.27:4000) -**LiteLLM Container**: Running on docker-server (siklos, 192.168.88.27:4000)
-**Docker Compose**: Configured and ready at `/opt/litellm/` -**Docker Compose**: Configured and ready at `/opt/litellm/`
-**Configuration**: Git initialized with config files in `/opt/litellm/config/` -**Configuration**: Git initialized with config files in `/opt/litellm/config/`
-**Gitea**: Ready at http://192.168.88.200:3000 for repository management -**Gitea**: Ready at http://192.168.88.27:3002 for repository management
-**All VMs**: Network access confirmed to docker-server -**All VMs**: Network access confirmed to docker-server
--- ---
@@ -162,7 +162,7 @@ Once tested, you can:
```bash ```bash
# Create litellm-config repo in Gitea, then: # Create litellm-config repo in Gitea, then:
cd /opt/litellm cd /opt/litellm
git remote add gitea http://192.168.88.200:3000/jgitta/litellm-config.git git remote add gitea http://192.168.88.27:3002/jgitta/litellm-config.git
git pull gitea master git pull gitea master
``` ```
+2 -2
View File
@@ -31,7 +31,7 @@ Master Key: litellm-local-key-change-in-production (⚠️ CHANGE THIS in produc
**Why?** This centralizes your API key management in version control. Updates to one place affect all VMs. **Why?** This centralizes your API key management in version control. Updates to one place affect all VMs.
1. Open: **http://192.168.88.200:3000** (Your Gitea instance) 1. Open: **http://192.168.88.27:3002** (Your Gitea instance)
2. Login with your account (jgitta) 2. Login with your account (jgitta)
3. Click **"+"** icon (top right) → **"New Repository"** 3. Click **"+"** icon (top right) → **"New Repository"**
4. Fill in: 4. Fill in:
@@ -147,7 +147,7 @@ docker-server (siklos @ 192.168.88.27)
├── litellm_config.yaml # Model definitions & API keys ├── litellm_config.yaml # Model definitions & API keys
└── README.md # Config documentation └── README.md # Config documentation
Gitea (gitea @ 192.168.88.200:3000) Gitea (gitea @ 192.168.88.27:3002)
└── jgitta/litellm-config/ └── jgitta/litellm-config/
└── (same files as above) └── (same files as above)
``` ```
+2 -2
View File
@@ -3,7 +3,7 @@
# This configuration pulls OpenCode config from centralized Gitea repository # This configuration pulls OpenCode config from centralized Gitea repository
# instead of managing per-VM configuration files # instead of managing per-VM configuration files
# #
# Updated for centralized config management via http://192.168.88.200:3000 # Updated for centralized config management via http://192.168.88.27:3002
version: '3.8' version: '3.8'
@@ -40,7 +40,7 @@ services:
mkdir -p /tmp/homelab-configs mkdir -p /tmp/homelab-configs
# Clone the central configs repo # Clone the central configs repo
if git clone http://192.168.88.200:3000/jgitta/homelab-configs.git /tmp/homelab-configs; then if git clone http://192.168.88.27:3002/jgitta/homelab-configs.git /tmp/homelab-configs; then
echo '✅ Configuration fetched successfully' echo '✅ Configuration fetched successfully'
else else
echo '⚠️ Could not fetch configs from Gitea, using defaults' echo '⚠️ Could not fetch configs from Gitea, using defaults'
+1 -1
View File
@@ -196,7 +196,7 @@ services:
entrypoint: /bin/sh entrypoint: /bin/sh
command: | command: |
-c " -c "
git clone http://192.168.88.200:3000/jgitta/homelab-configs.git /tmp/configs git clone http://192.168.88.27:3002/jgitta/homelab-configs.git /tmp/configs
cp /tmp/configs/opencode/config.json ~/.opencode/config.json cp /tmp/configs/opencode/config.json ~/.opencode/config.json
exec ~/.opencode/bin/opencode exec ~/.opencode/bin/opencode
" "
+5 -5
View File
@@ -3,7 +3,7 @@
**VM**: next (Nextcloud) @ 192.168.88.62 **VM**: next (Nextcloud) @ 192.168.88.62
**OpenCode**: Running in Docker **OpenCode**: Running in Docker
**API Gateway**: LiteLLM @ 192.168.88.27:4000 **API Gateway**: LiteLLM @ 192.168.88.27:4000
**Config Source**: Gitea @ 192.168.88.200:3000 **Config Source**: Gitea @ 192.168.88.27:3002
--- ---
@@ -70,7 +70,7 @@ docker exec opencode curl -s http://192.168.88.27:4000/models \
### 2.2 Can OpenCode Reach Gitea? ### 2.2 Can OpenCode Reach Gitea?
```bash ```bash
docker exec opencode curl -s http://192.168.88.200:3000/api/v1/version | jq '.version' docker exec opencode curl -s http://192.168.88.27:3002/api/v1/version | jq '.version'
# Expected output: "1.21.4" # Expected output: "1.21.4"
``` ```
@@ -173,7 +173,7 @@ opencode
On your workstation: On your workstation:
```bash ```bash
# Clone the homelab-configs repo # Clone the homelab-configs repo
git clone http://192.168.88.200:3000/jgitta/homelab-configs.git git clone http://192.168.88.27:3002/jgitta/homelab-configs.git
cd homelab-configs cd homelab-configs
# Edit the config to use Claude instead # Edit the config to use Claude instead
@@ -233,7 +233,7 @@ docker exec opencode curl -s http://192.168.88.27:4000/models \
echo "" echo ""
echo "Test 4: Gitea Reachability" echo "Test 4: Gitea Reachability"
docker exec opencode curl -s http://192.168.88.200:3000/api/v1/version | jq '.version' docker exec opencode curl -s http://192.168.88.27:3002/api/v1/version | jq '.version'
# Expected: "1.21.4" # Expected: "1.21.4"
echo "" echo ""
@@ -258,7 +258,7 @@ echo "✅ All tests completed!"
docker-compose logs opencode | grep -i "fetch\|clone" docker-compose logs opencode | grep -i "fetch\|clone"
# Check if Gitea is accessible # Check if Gitea is accessible
curl http://192.168.88.200:3000/ curl http://192.168.88.27:3002/
# If fails, Gitea might be down # If fails, Gitea might be down
# Manually update the config # Manually update the config
+4 -4
View File
@@ -99,13 +99,13 @@ fi
# Test 4: Gitea Accessibility # Test 4: Gitea Accessibility
section "Test 4: Gitea Repository Connectivity" section "Test 4: Gitea Repository Connectivity"
if timeout 5 docker exec opencode curl -s http://192.168.88.200:3000/api/v1/version > /dev/null 2>&1; then if timeout 5 docker exec opencode curl -s http://192.168.88.27:3002/api/v1/version > /dev/null 2>&1; then
pass "Gitea is accessible at 192.168.88.200:3000" pass "Gitea is accessible at 192.168.88.27:3002"
GITEA_VERSION=$(docker exec opencode curl -s http://192.168.88.200:3000/api/v1/version | grep -o '"version":"[^"]*"' | cut -d'"' -f4) GITEA_VERSION=$(docker exec opencode curl -s http://192.168.88.27:3002/api/v1/version | grep -o '"version":"[^"]*"' | cut -d'"' -f4)
info "Gitea version: $GITEA_VERSION" info "Gitea version: $GITEA_VERSION"
else else
fail "Cannot reach Gitea at 192.168.88.200:3000" fail "Cannot reach Gitea at 192.168.88.27:3002"
info "Check Gitea status on docker-server" info "Check Gitea status on docker-server"
fi fi
+4 -4
View File
@@ -9,7 +9,7 @@
set -e set -e
# Configuration # Configuration
GITEA_URL="http://192.168.88.200:3000" GITEA_URL="http://192.168.88.27:3002"
GITEA_USER="jgitta" GITEA_USER="jgitta"
REPO_NAME="homelab-configs" REPO_NAME="homelab-configs"
LITELLM_API="http://192.168.88.27:4000" LITELLM_API="http://192.168.88.27:4000"
@@ -167,7 +167,7 @@ volumes:
| Service | URL/IP | Purpose | | Service | URL/IP | Purpose |
|---------|--------|---------| |---------|--------|---------|
| Gitea | http://192.168.88.200:3000 | Central config repository | | Gitea | http://192.168.88.27:3002 | Central config repository |
| LiteLLM API | http://192.168.88.27:4000 | Unified AI model gateway | | LiteLLM API | http://192.168.88.27:4000 | Unified AI model gateway |
| Nextcloud (next) | 192.168.88.62 | Running OpenCode | | Nextcloud (next) | 192.168.88.62 | Running OpenCode |
| Docker Server (siklos) | 192.168.88.27 | Hosting LiteLLM | | Docker Server (siklos) | 192.168.88.27 | Hosting LiteLLM |
@@ -206,7 +206,7 @@ To add a new service to centralized config:
**Last Updated**: April 25, 2026 **Last Updated**: April 25, 2026
**Maintained By**: jgitta **Maintained By**: jgitta
**Repository**: http://192.168.88.200:3000/jgitta/homelab-configs **Repository**: http://192.168.88.27:3002/jgitta/homelab-configs
EOF EOF
echo -e "${GREEN}✅ Created README.md${NC}" echo -e "${GREEN}✅ Created README.md${NC}"
@@ -273,7 +273,7 @@ services:
command: | command: |
-c " -c "
mkdir -p /tmp/configs mkdir -p /tmp/configs
git clone http://192.168.88.200:3000/jgitta/homelab-configs.git /tmp/configs || true git clone http://192.168.88.27:3002/jgitta/homelab-configs.git /tmp/configs || true
mkdir -p /root/.opencode mkdir -p /root/.opencode
cp /tmp/configs/opencode/config.json /root/.opencode/config.json cp /tmp/configs/opencode/config.json /root/.opencode/config.json
exec opencode exec opencode
+4 -4
View File
@@ -99,13 +99,13 @@ fi
# Test 4: Gitea Accessibility # Test 4: Gitea Accessibility
section "Test 4: Gitea Repository Connectivity" section "Test 4: Gitea Repository Connectivity"
if timeout 5 docker exec opencode curl -s http://192.168.88.200:3000/api/v1/version > /dev/null 2>&1; then if timeout 5 docker exec opencode curl -s http://192.168.88.27:3002/api/v1/version > /dev/null 2>&1; then
pass "Gitea is accessible at 192.168.88.200:3000" pass "Gitea is accessible at 192.168.88.27:3002"
GITEA_VERSION=$(docker exec opencode curl -s http://192.168.88.200:3000/api/v1/version | grep -o '"version":"[^"]*"' | cut -d'"' -f4) GITEA_VERSION=$(docker exec opencode curl -s http://192.168.88.27:3002/api/v1/version | grep -o '"version":"[^"]*"' | cut -d'"' -f4)
info "Gitea version: $GITEA_VERSION" info "Gitea version: $GITEA_VERSION"
else else
fail "Cannot reach Gitea at 192.168.88.200:3000" fail "Cannot reach Gitea at 192.168.88.27:3002"
info "Check Gitea status on docker-server" info "Check Gitea status on docker-server"
fi fi