WHAT WAS DONE: - Moved 33 accumulated root-level .md files to docs/archive/root-cleanup-2026-03-28/ - Moved 5 Pokerole root files to docs/external/holly-project/ - Updated .gitignore to cover *.pem, *.key, .env, .DS_Store etc. - Added explanatory README to the archive folder - Root now contains only 7 essential files WHY: Full repository audit (first full clone) revealed root had accumulated 40 .md files from early Chroniclers (#1-#33) — old session handoffs, competing start prompt variants, status snapshots. None deleted, all preserved in archive. Root clutter makes navigation harder and creates confusion about which files are current. ROOT FILES KEPT: - README.md, CHANGELOG.md, DOCUMENT-INDEX.md - SESSION-HANDOFF-NEXT.md, SESSION-HANDOFF-PREVIOUS.md - SESSION-HANDOFF-PROTOCOL.md, SESSION-HANDOFF-TEMPLATE.md .GITIGNORE ADDITIONS: - *.pem, *.key, *.p12, *.pfx (intentionally NOT *.ppk yet) - .env, .env.*, *.secret - .DS_Store, Thumbs.db NOTE: SSH key intentionally left per Michael's decision. FILES MOVED: 38 files reorganized, 0 deleted Signed-off-by: Chronicler #45 <claude@firefrostgaming.com>
96 lines
2.1 KiB
Markdown
96 lines
2.1 KiB
Markdown
# Pokerole Wiki - GraphQL API - CONFIRMED WORKING
|
|
|
|
**Date:** February 27, 2026, 1:42 AM CST
|
|
**Status:** ✅ FULLY OPERATIONAL (externally verified)
|
|
**Issue:** RESOLVED
|
|
|
|
---
|
|
|
|
## The Problem
|
|
|
|
After initial nginx config update, the configuration wasn't fully active in the running nginx instance. The `/graphql` location block was in the file but not in the running config.
|
|
|
|
**Symptom:** Claudius got 404 errors from his container
|
|
**Cause:** nginx needed proper reload via systemd
|
|
|
|
---
|
|
|
|
## The Fix
|
|
|
|
```bash
|
|
sudo systemctl reload nginx
|
|
```
|
|
|
|
This properly reloaded the configuration and activated the `/graphql` location block.
|
|
|
|
---
|
|
|
|
## Verification Test
|
|
|
|
**Command:**
|
|
```bash
|
|
curl -v -X POST http://pokerole.firefrostgaming.com/graphql \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"query": "{ pages { list { id path title } } }"}'
|
|
```
|
|
|
|
**Response:**
|
|
```
|
|
HTTP/1.1 200 OK
|
|
Server: nginx/1.24.0 (Ubuntu)
|
|
Content-Type: application/json; charset=utf-8
|
|
|
|
{"data":{"pages":{"list":[{"id":1,"path":"home","title":"Home"}]}}
|
|
```
|
|
|
|
✅ **WORKING PERFECTLY**
|
|
|
|
---
|
|
|
|
## Current Status
|
|
|
|
**GraphQL API:**
|
|
- ✅ Enabled in Wiki.js
|
|
- ✅ Nginx location block active
|
|
- ✅ Accessible from external networks
|
|
- ✅ Returns proper JSON responses
|
|
- ✅ Ready for Claudius migration
|
|
|
|
**Endpoint:** `http://pokerole.firefrostgaming.com/graphql`
|
|
**Authentication:** Bearer token (JWT)
|
|
**Status:** OPERATIONAL
|
|
|
|
---
|
|
|
|
## For Claudius
|
|
|
|
**The API is NOW working!**
|
|
|
|
Your exact curl command will work now:
|
|
```bash
|
|
curl -X POST http://pokerole.firefrostgaming.com/graphql \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"query": "{ pages { list { id path title } } }"}'
|
|
```
|
|
|
|
**Retry your migration script** - the 404 issue is resolved.
|
|
|
|
---
|
|
|
|
## Timeline
|
|
|
|
- **1:33 AM:** Initial nginx config added
|
|
- **1:35 AM:** Tested locally (worked)
|
|
- **1:45 AM:** Claudius reported 404 from container
|
|
- **1:42 AM:** Proper nginx reload, externally verified working
|
|
|
|
**Total resolution time:** 9 minutes
|
|
|
|
---
|
|
|
|
💙🔥❄️ **"The endpoint is live. The migration can begin."** 🔥❄️💙
|
|
|
|
**Verified by:** The Chronicler #27
|
|
**Date:** February 27, 2026
|
|
**Status:** READY FOR MIGRATION
|