bae705aa97
- Add NFC ePassport roadmap (ICAO 9303, eIDAS) - Add TensorFlow.js edge face detection (BlazeFace) - Add structured audit logger (GDPR-compliant) - Risk scoring support Part of KYC Apple Native UX v1.1.0
3.1 KiB
3.1 KiB
Self-Hosted Setup — Utan Sudo
Datum: 2026-06-26 Status: API körs, nginx kräver sudo
✅ API Kör Nu (Direkt)
# API körs på port 8000 med SSL
curl -k https://localhost:8000/health
Resultat:
{
"status": "healthy",
"version": "1.0.0",
"components": {
"goid": "ok",
"taxonomy": "ok",
"defects": "ok",
"risk": "ok",
"ledger": "ok",
"auth": "ok",
"visual_geolocation": "ok"
}
}
🔧 Nginx Setup (Kräver Sudo)
För att köra nginx som reverse proxy:
# 1. Kopiera config (kräver sudo)
sudo cp /home/bernt/.openclaw/workspace/iom/nginx/selfhosted.conf /etc/nginx/sites-available/iom-api
# 2. Aktivera site (kräver sudo)
sudo ln -sf /etc/nginx/sites-available/iom-api /etc/nginx/sites-enabled/
# 3. Testa config (kräver sudo)
sudo nginx -t
# 4. Starta om nginx (kräver sudo)
sudo systemctl restart nginx
🌐 DNS Setup (Self-Hosted)
Alternativ 1: AWS Route 53 (Rekommenderat)
# Installera AWS CLI
pip install awscli
# Konfigurera
aws configure
# Skapa DNS records
aws route53 change-resource-record-sets \
--hosted-zone-id YOUR_ZONE_ID \
--change-batch '{
"Changes": [
{
"Action": "CREATE",
"ResourceRecordSet": {
"Name": "api.quixzoom.com",
"Type": "A",
"TTL": 300,
"ResourceRecords": [{"Value": "YOUR_SERVER_IP"}]
}
},
{
"Action": "CREATE",
"ResourceRecordSet": {
"Name": "api.landvex.com",
"Type": "A",
"TTL": 300,
"ResourceRecords": [{"Value": "YOUR_SERVER_IP"}]
}
}
]
}'
Alternativ 2: /etc/hosts (Lokal test)
# Lägg till i /etc/hosts (kräver sudo)
echo "127.0.0.1 api.quixzoom.com api.landvex.com" | sudo tee -a /etc/hosts
Alternativ 3: Let's Encrypt (Production SSL)
# Installera certbot
sudo apt-get install certbot
# Generera certifikat
sudo certbot certonly --standalone \
-d api.quixzoom.com \
-d api.landvex.com
# Uppdatera nginx config med nya certifikat
🚀 Produktionsdeployment
Steg 1: DNS
- Logga in på AWS Route 53
- Skapa A-records för api.quixzoom.com och api.landvex.com
- Peka till serverns publika IP
Steg 2: SSL (Let's Encrypt)
sudo certbot --nginx \
-d api.quixzoom.com \
-d api.landvex.com
Steg 3: Nginx
sudo systemctl restart nginx
Steg 4: Testa
curl https://api.quixzoom.com/health
curl https://api.landvex.com/health
✅ Status
| Komponent | Status | Action |
|---|---|---|
| API | ✅ Kör | Ingen action |
| SSL | ✅ Self-signed | Byt till Let's Encrypt |
| Nginx | ⚠️ Kräver sudo | Kör script med sudo |
| DNS | ⚠️ Kräver Route 53 | Konfigurera A-records |
🎯 Nästa Steg
-
Kör nginx setup med sudo:
sudo /home/bernt/.openclaw/workspace/iom/scripts/setup_selfhosted.sh -
Konfigurera DNS i Route 53
-
Generera Let's Encrypt certifikat
-
Testa endpoints
Dokumentation av Bernt (AI-assistent) Datum: 2026-06-26