π Cloudflare Deployment Guide
π SECURITY FIRST - G100 KONZEPT Phase
VOR JEDEM DEPLOYMENT: Cloudflare Access mit One-Time PIN einrichten!
π Setup Guide: Security Cloudflare Access
Warum critical?
- G100 ist KONZEPT in Early Stage
- NDA-pflichtige Business-Logik enthalten
- Nur invited Team & Investors sollen Zugriff haben
- Compliance & Audit Logs erforderlich
Was geschΓΌtzt wird:
- β
MkDocs Documentation (
docs.g100.dev) - β
API Staging (
api-staging.g100.dev) - β
XPipe MCP Server (
xpipe.g100.dev)
5 Minuten Setup:
- Zero Trust aktivieren
- One-Time PIN Provider enable
- Access Application erstellen
- Email Whitelist pflegen
- Deployment starten!
π¦ MkDocs auf Cloudflare Pages
Step 1: GitHub Repository vorbereiten
cd /Users/gm/Documents/Visual_Code_SHARED/ContractPlattformWhiteLabel/docs
# Git initialisieren (falls noch nicht geschehen)
git init
git add .
git commit -m "docs: Add G100 MEGA ECOSYSTEM documentation"
# GitHub Repository erstellen und pushen
# (Manuell auf GitHub: New Repository β ContractPlattform-Docs)
git remote add origin https://github.com/YOUR_USERNAME/ContractPlattform-Docs.git
git push -u origin main
Step 2: Cloudflare Pages erstellen
-
Gehe zu Cloudflare Dashboard:
-
Click "Create a project"
-
Connect to Git:
- WΓ€hle "Connect to Git"
- Autorisiere GitHub
-
WΓ€hle Repository:
ContractPlattform-Docs -
Build Configuration:
-
Environment Variables:
-
Click "Save and Deploy"
Step 3: Custom Domain (Optional)
Option A: Subdomain (Empfohlen fΓΌr Dev)
Option B: Cloudflare Workers Domain (kostenlos)
Konfiguration:
1. Pages Dashboard β Settings β Custom domains
2. Add custom domain: docs-dev.contractplattform.com
3. DNS wird automatisch konfiguriert
Step 4: Preview Deployments
Jeder Git Branch bekommt eine Preview URL:
main branch: https://contractplattform-docs.pages.dev
develop branch: https://develop.contractplattform-docs.pages.dev
feature/g100 branch: https://feature-g100.contractplattform-docs.pages.dev
π§ Troubleshooting
Build Failed?
Problem: Python dependencies nicht gefunden
LΓΆsung:
Problem: mkdocs.yml nicht gefunden
LΓΆsung: Root directory auf /docs setzen (falls Monorepo)
β Deployment Checklist
- [ ] GitHub Repository erstellt
- [ ] Code gepusht
- [ ] Cloudflare Pages Projekt erstellt
- [ ] Build erfolgreich
- [ ] Preview URL funktioniert
- [ ] Custom Domain konfiguriert (optional)
- [ ] SSL Zertifikat aktiv (automatisch)
π Deployment Status
| Environment | URL | Status |
|---|---|---|
| Production | https://docs.contractplattform.com | π Pending |
| Preview (main) | https://contractplattform-docs.pages.dev | π Pending |
| Local | http://localhost:8000 | β Running |
π Next: API Deployment
Siehe API_DEPLOYMENT.md fΓΌr Cloudflare Workers Setup.