added
This commit is contained in:
commit
38ae828d82
85 files changed
+11990
No files matched your search
@@ -0,0 +1,461 @@
|
||||
# iNDX Front Website Deployment Summary
|
||||
|
||||
## Overview
|
||||
|
||||
This session completed the first successful deployment of the iNDX AI-native static website architecture onto the production VM.
|
||||
|
||||
The deployment now includes:
|
||||
|
||||
* Git-based deployment workflow
|
||||
* Dockerized static serving
|
||||
* nginx runtime container
|
||||
* AI-native semantic artifact publishing
|
||||
* Separation of source-of-truth vs rendering layer
|
||||
* Compatibility with existing Caddy reverse proxy infrastructure
|
||||
* Verified AI retrieval endpoints
|
||||
|
||||
---
|
||||
|
||||
# Architecture Decisions Finalized
|
||||
|
||||
## Canonical Source of Truth
|
||||
|
||||
The Git repository is now the authoritative system.
|
||||
|
||||
The repository contains:
|
||||
|
||||
* `/content` → authored markdown
|
||||
* `/public` → deployable runtime surface
|
||||
* `/public/data/open/...` → semantic retrieval artifacts
|
||||
* `/skills-scripts` → AI structuring workflows
|
||||
* `/templates` → reusable rendering assets
|
||||
* `/hugo-html-builder` → temporary rendering subsystem
|
||||
|
||||
---
|
||||
|
||||
## Hugo Role Clarified
|
||||
|
||||
Hugo is NOT the website framework.
|
||||
|
||||
Hugo is ONLY:
|
||||
|
||||
```text
|
||||
Markdown → HTML materialization engine
|
||||
```
|
||||
|
||||
Workflow:
|
||||
|
||||
```text
|
||||
Markdown
|
||||
↓
|
||||
Hugo render pass
|
||||
↓
|
||||
Generated HTML
|
||||
↓
|
||||
Commit/publish into /public
|
||||
```
|
||||
|
||||
The semantic architecture remains independent of Hugo.
|
||||
|
||||
---
|
||||
|
||||
# Major Structural Refactor Completed
|
||||
|
||||
## AI Artifacts Moved Under /public
|
||||
|
||||
Original structure:
|
||||
|
||||
```text
|
||||
/data/open/pages/...
|
||||
```
|
||||
|
||||
Final structure:
|
||||
|
||||
```text
|
||||
/public/data/open/pages/...
|
||||
```
|
||||
|
||||
This normalized the deployable runtime namespace.
|
||||
|
||||
Now all deployable assets live under:
|
||||
|
||||
```text
|
||||
/public
|
||||
```
|
||||
|
||||
including:
|
||||
|
||||
* HTML
|
||||
* ai-index.json
|
||||
* chunks.json
|
||||
* qa.json
|
||||
* robots.txt
|
||||
* sitemap.xml
|
||||
* llms.txt
|
||||
* agents.md
|
||||
* skills.md
|
||||
|
||||
---
|
||||
|
||||
# Git Deployment Workflow Established
|
||||
|
||||
## Public Repo Access
|
||||
|
||||
Gitea configuration issue identified:
|
||||
|
||||
```ini
|
||||
REQUIRE_SIGNIN_VIEW = true
|
||||
```
|
||||
|
||||
This prevented anonymous cloning of public repositories.
|
||||
|
||||
Resolved by disabling:
|
||||
|
||||
```text
|
||||
Require Sign-In to View Pages
|
||||
```
|
||||
|
||||
inside Gitea configuration.
|
||||
|
||||
Successful anonymous clone verified:
|
||||
|
||||
```bash
|
||||
git clone https://git.example.com/example/structured-website-builder-private.git
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Server Deployment Path
|
||||
|
||||
Production deployment path established:
|
||||
|
||||
```text
|
||||
/path/to/structured-website-builder
|
||||
```
|
||||
|
||||
Repository successfully cloned and updated via:
|
||||
|
||||
```bash
|
||||
git pull
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Docker Runtime Architecture
|
||||
|
||||
## Final Runtime Topology
|
||||
|
||||
```text
|
||||
Internet
|
||||
↓
|
||||
Cloudflare
|
||||
↓
|
||||
Caddy Reverse Proxy
|
||||
↓
|
||||
nginx Docker container
|
||||
↓
|
||||
Static AI-native website
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# nginx Container Decision
|
||||
|
||||
Decision made to use:
|
||||
|
||||
```text
|
||||
nginx:alpine
|
||||
```
|
||||
|
||||
instead of:
|
||||
|
||||
* Hugo runtime
|
||||
* Python web server
|
||||
* Node server
|
||||
|
||||
Reason:
|
||||
|
||||
* static site only
|
||||
* extremely lightweight
|
||||
* ideal for semantic artifact serving
|
||||
|
||||
---
|
||||
|
||||
# SSL/TLS Architecture Finalized
|
||||
|
||||
SSL terminates at Caddy.
|
||||
|
||||
nginx inside container only serves HTTP internally.
|
||||
|
||||
Correct separation:
|
||||
|
||||
| Layer | Responsibility |
|
||||
| ----- | ------------------- |
|
||||
| Caddy | TLS / HTTPS |
|
||||
| nginx | static file serving |
|
||||
|
||||
Therefore nginx listens ONLY on:
|
||||
|
||||
```nginx
|
||||
listen 80;
|
||||
```
|
||||
|
||||
No certificates managed inside container.
|
||||
|
||||
---
|
||||
|
||||
# Port Conflict Analysis
|
||||
|
||||
Discourse already occupies:
|
||||
|
||||
```text
|
||||
localhost:8080
|
||||
```
|
||||
|
||||
on the same VM.
|
||||
|
||||
Static site container reassigned to:
|
||||
|
||||
```text
|
||||
localhost:8090
|
||||
```
|
||||
|
||||
Final compose mapping:
|
||||
|
||||
```yaml
|
||||
ports:
|
||||
- "8090:80"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Docker Compose Installation
|
||||
|
||||
System initially lacked:
|
||||
|
||||
* docker compose plugin
|
||||
* docker-compose
|
||||
|
||||
Installed:
|
||||
|
||||
```bash
|
||||
sudo apt install docker-compose -y
|
||||
```
|
||||
|
||||
Did NOT:
|
||||
|
||||
* reinstall Docker
|
||||
* use snap Docker
|
||||
|
||||
to avoid disrupting existing Discourse infrastructure.
|
||||
|
||||
---
|
||||
|
||||
# Docker Permission Resolution
|
||||
|
||||
Issue encountered:
|
||||
|
||||
```text
|
||||
Permission denied on docker.sock
|
||||
```
|
||||
|
||||
Cause:
|
||||
|
||||
* `eddieadmin` not yet in docker group.
|
||||
|
||||
Temporary resolution:
|
||||
|
||||
* use `sudo docker-compose`
|
||||
|
||||
Future improvement:
|
||||
|
||||
```bash
|
||||
sudo usermod -aG docker eddieadmin
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Docker Runtime Files Created
|
||||
|
||||
## docker/nginx.conf
|
||||
|
||||
Configured:
|
||||
|
||||
* static serving
|
||||
* UTF-8
|
||||
* cache headers
|
||||
* AI artifact access
|
||||
* CORS support
|
||||
|
||||
---
|
||||
|
||||
## docker/Dockerfile
|
||||
|
||||
Final runtime image:
|
||||
|
||||
```dockerfile
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
COPY public/ /usr/share/nginx/html/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
Final configuration:
|
||||
|
||||
```yaml
|
||||
services:
|
||||
|
||||
structured-website-builder-web:
|
||||
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/Dockerfile
|
||||
|
||||
container_name: structured-website-builder-web
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
ports:
|
||||
- "8090:80"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Build + Runtime Validation
|
||||
|
||||
Successfully executed:
|
||||
|
||||
```bash
|
||||
sudo docker-compose build
|
||||
```
|
||||
|
||||
and:
|
||||
|
||||
```bash
|
||||
sudo docker-compose up -d
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Runtime Verification Completed
|
||||
|
||||
## Homepage Validation
|
||||
|
||||
Verified:
|
||||
|
||||
```bash
|
||||
curl http://localhost:8090
|
||||
```
|
||||
|
||||
Returned valid homepage HTML.
|
||||
|
||||
---
|
||||
|
||||
## AI Artifact Validation
|
||||
|
||||
Verified:
|
||||
|
||||
```bash
|
||||
curl http://localhost:8090/ai-index.json
|
||||
```
|
||||
|
||||
and:
|
||||
|
||||
```bash
|
||||
curl http://localhost:8090/data/open/pages/home/chunks.json
|
||||
```
|
||||
|
||||
and:
|
||||
|
||||
```bash
|
||||
curl http://localhost:8090/data/open/pages/home/qa.json
|
||||
```
|
||||
|
||||
All successful.
|
||||
|
||||
This confirms:
|
||||
|
||||
* AI retrieval layer operational
|
||||
* semantic namespace operational
|
||||
* discovery layer operational
|
||||
* nginx static serving operational
|
||||
* deployable runtime namespace operational
|
||||
|
||||
---
|
||||
|
||||
# Current Production State
|
||||
|
||||
The system now successfully operates as:
|
||||
|
||||
```text
|
||||
AI-native static semantic publishing infrastructure
|
||||
```
|
||||
|
||||
with:
|
||||
|
||||
* Git-based deployment
|
||||
* Dockerized runtime
|
||||
* nginx serving
|
||||
* semantic retrieval endpoints
|
||||
* AI discovery endpoints
|
||||
* structured chunk architecture
|
||||
* QA reasoning layer
|
||||
* independent rendering pipeline
|
||||
|
||||
---
|
||||
|
||||
# Next Planned Steps
|
||||
|
||||
## Infrastructure
|
||||
|
||||
* Wire Caddy reverse proxy
|
||||
* Configure indx.earth routing
|
||||
* Enable HTTPS via Caddy
|
||||
* Cloudflare DNS + proxy validation
|
||||
|
||||
---
|
||||
|
||||
## Website
|
||||
|
||||
* Add lightweight contact API service
|
||||
* Add subscription endpoint
|
||||
* Add health monitoring route
|
||||
* Add deployment/update workflow automation
|
||||
|
||||
---
|
||||
|
||||
## AI Layer
|
||||
|
||||
* Expand semantic summaries
|
||||
* Additional JSON-LD generation
|
||||
* Future MCP/API integration
|
||||
* Agent retrieval experimentation
|
||||
|
||||
---
|
||||
|
||||
# Final Architecture Snapshot
|
||||
|
||||
```text
|
||||
Markdown Content
|
||||
↓
|
||||
Semantic Structuring
|
||||
↓
|
||||
chunks.json + qa.json
|
||||
↓
|
||||
Hugo Materialization
|
||||
↓
|
||||
/public Runtime Surface
|
||||
↓
|
||||
Docker nginx Container
|
||||
↓
|
||||
Caddy Reverse Proxy
|
||||
↓
|
||||
Cloudflare Edge
|
||||
↓
|
||||
Public AI-Native Website
|
||||
```
|
||||
Reference in new issue
Block a user