#!/bin/bash
cd ~/firefrost-work/firefrost-operations-manual

cat > Firefrost_Infrastructure_Manifest.md << 'EOF'
# Firefrost Gaming: Infrastructure Manifest

# Phase 0.5+: Management Services Complete

# Current Version: v1.5

# Last Updated: 2026-02-11

---

## 1. Management Services (VPS Tier)

| Service | Location | IP | Domain | Status |
| :---- | :---- | :---- | :---- | :---- |
| **Gitea** | Command Center | 63.143.34.217 | git.firefrostgaming.com | ✅ OPERATIONAL |
| **Uptime Kuma** | Command Center | 63.143.34.217 | status.firefrostgaming.com | ✅ OPERATIONAL |
| **Automation** | Command Center | 63.143.34.217 | N/A | ✅ OPERATIONAL |
| **MkDocs** | Ghost VPS | 64.50.188.14 | docs.firefrostgaming.com | ✅ OPERATIONAL |
| **Code-Server** | Command Center | 63.143.34.217 | code.firefrostgaming.com | ✅ OPERATIONAL |
| **Wiki.js (Sub)** | Ghost VPS | 64.50.188.14 | subscribers.firefrostgaming.com | ⏳ PENDING |
| **Wiki.js (Staff)** | Ghost VPS | 64.50.188.14 | staff.firefrostgaming.com | ⏳ PENDING |
| **NextCloud** | Ghost VPS | 64.50.188.14 | downloads.firefrostgaming.com | ⏳ PENDING |

---

## 2. Core Services Hierarchy (VPS Tier)

| Friendly Name | Service | Primary IP | Status | Role |
| :---- | :---- | :---- | :---- | :---- |
| **Panel** | Pterodactyl Panel | 45.94.168.138 | Verified | Control Plane |
| **Command Center** | Management Hub | 63.143.34.217 | Operational | Primary Gateway + Tools |
| **Billing** | Paymenter/Portal | 38.68.14.188 | Verified | Financials |
| **Ghost** | Ghost CMS | 64.50.188.14 | Verified | Documentation Cluster |

### Command Center Details

- **Primary IP:** 63.143.34.217
- **Services:** Gitea, Uptime Kuma, Code-Server, Automation daemon
- **Node.js:** 20.20.0
- **Nginx:** Reverse proxy for all services

---

## 3. NC1 - Charlotte Node Mapping

- **Friendly Name:** **NC1**
- **Primary Node IP:** 216.239.104.130
- **Gateway:** 216.239.104.129
- **Subnet:** 216.239.104.128/29 (Mask: 255.255.255.248)
- **Routing:** ✅ Reachable from Command Center (resolved Feb 2026)

| Server Name | IP Address | Port | UUID |
| :---- | :---- | :---- | :---- |
| **The Ember Project** | 216.239.104.130 | 25565 | 124f9060-58a7-457a-b2cf-b4024fce2951 |
| **Minecolonies: Create and Conquer** | 216.239.104.130 | 25566 | a14201d2-83b2-44e6-ae48-e6c4cbc56f24 |
| **All The Mods 10** | 216.239.104.130 | 25569 | 82e63949-8fbf-4a44-b32a-53324e8492bf |
| **EMC Subterra Tech** | 216.239.104.130 | 25571 | 09a95f38-9f8c-404a-9557-3a7c44258223 |
| **Homestead** | 216.239.104.130 | 25572 | 2f85d4ef-aa49-4dd6-b448-beb3fca1db12 |
| **Hytale** | 216.239.104.130 | 5520 | 13c80cb8-f6f8-4bfe-9cdb-823d7e951584 |

**Total NC1 Servers:** 6

---

## 4. TX1 - Dallas Node Mapping

- **Friendly Name:** **TX1**
- **Primary Node IP:** 38.68.14.26
- **Gateway:** 38.68.14.25
- **Subnet:** 38.68.14.24/29 (Mask: 255.255.255.248)
- **Status:** Game servers ONLY (management services on VPS tier)

| Server Name | IP Address | Port | UUID |
| :---- | :---- | :---- | :---- |
| **Stoneblock 4** | 38.68.14.26 | 25565 | a0efbfe8-4b97-4a90-869d-ffe6d3072bd5 |
| **Reclamation** | 38.68.14.27 | 25565 | 1eb33479-a6bc-4e8f-b64d-d1e4bfa0a8b4 |
| **Society: Sunlit Valley** | 38.68.14.28 | 25565 | 9310d0a6-62a6-4fe6-82c4-eb483dc68876 |
| **Vanilla 1.21.11** | 38.68.14.29 | 25565 | 3bed1bda-f648-4630-801a-fe9f2e3d3f27 |
| **All The Mons** | 38.68.14.30 | 25565 | 668a5220-7e72-4379-9165-bdbb84bc9806 |
| **FoundryVTT** | 38.68.14.26 | 30000 | 7d8f15a0-4ee7-4dd6-85dc-ab42966f733d |

**Total TX1 Servers:** 6

---

## 5. Global Port Reservations

- **Minecraft:** 25565 - 25580
- **Hytale:** 5520 - 5521
- **FoundryVTT:** 30000
- **Gitea:** 3000 (internal, proxied via Nginx)
- **Uptime Kuma:** 3001 (internal, proxied via Nginx)
- **Code-Server:** 8080 (internal, proxied via Nginx)

---

## 6. Infrastructure Architecture

### Management Services Strategy (Implemented Feb 9, 2026)

**Philosophy:** "Backend on Command Center, Frontend on Ghost, Money on Billing, Games on Dedis, Control on Panel"

**VPS Tier (Management):**
- Command Center: Gitea, Uptime Kuma, Code-Server, Automation (backend tools)
- Ghost VPS: MkDocs, Wiki.js, NextCloud (public-facing docs)
- Billing VPS: Paymenter only (financial isolation)
- Panel VPS: Pterodactyl Panel only (control plane)

**Dedicated Tier (Performance):**
- TX1 Dallas: Game servers ONLY (6 servers)
- NC1 Charlotte: Game servers ONLY (6 servers)

**Rationale:**
- VPS = plug-and-play networking, easy SSL, low maintenance
- Dedicated = performance for game servers, massive RAM/CPU
- Clear separation of concerns
- Optimal use of existing infrastructure ($0 additional cost)

### Key Architecture Note (NC1)

All NC1 game servers share a single IP (216.239.104.130) with unique ports. This differs from TX1 where each server has its own IP on the /29 block.

---

## 7. Monitoring Status

**Uptime Kuma:** status.firefrostgaming.com

**Infrastructure Monitors:**
- ✅ Pterodactyl Panel (100% uptime)
- ✅ Command Center (100% uptime)
- ✅ Ghost CMS (100% uptime)
- ✅ Gitea (98%+ uptime)
- ✅ Paymenter Billing (100% uptime)

**Game Server Monitors (Added Feb 11, 2026):**

TX1 Dallas:
- ✅ Stoneblock 4 (38.68.14.26:25565)
- ✅ Reclamation (38.68.14.27:25565)
- ✅ Society: Sunlit Valley (38.68.14.28:25565)
- ✅ Vanilla 1.21.11 (38.68.14.29:25565)
- ✅ All The Mons (38.68.14.30:25565)
- ✅ FoundryVTT (38.68.14.26:30000)

NC1 Charlotte:
- ✅ The Ember Project (216.239.104.130:25565)
- ✅ Minecolonies: Create and Conquer (216.239.104.130:25566)
- ✅ All The Mods 10 (216.239.104.130:25569)
- ✅ EMC Subterra Tech (216.239.104.130:25571)
- ✅ Homestead (216.239.104.130:25572)
- ✅ Hytale (216.239.104.130:5520)

**Total Monitors:** 17 (5 infrastructure + 12 game servers)

---

## Revision History

| Revision | Date | Author | Description of Changes |
| :---- | :---- | :---- | :---- |
| **v1.0** | 2026-02-07 | Michael | Initial Phase 0 Audit; Infrastructure mapping for NC1 and TX1. |
| **v1.1** | 2026-02-07 | Michael | Added verified Friendly Names for core services and hardware. |
| **v1.2** | 2026-02-07 | Michael | Finalized Command Center networking with /29 block (74.63.218.201). |
| **v1.3** | 2026-02-07 | Michael | Synced profile for Michael (57) and updated accessibility context. |
| **v1.4** | 2026-02-09 | Michael | Management services migrated to VPS tier. Command Center now operational with Gitea + Uptime Kuma. TX1 optimized for game servers only. Added infrastructure architecture section. |
| **v1.5** | 2026-02-11 | Michael + Claude | Corrected NC1/TX1 server lists from Panel (actual). NC1 all on single IP with unique ports. Updated UUIDs. Added Code-Server to management services. Added all 12 game server monitors to Uptime Kuma. NC1 routing resolved. Total servers: 12 (6 TX1 + 6 NC1). |

---

**End of Document**
EOF

git add Firefrost_Infrastructure_Manifest.md
git commit -m "Update Infrastructure Manifest v1.5 - Corrected NC1/TX1 server lists, added game server monitors, NC1 routing resolved"
git push
