Files
boc/nginx-pending/apply.sh
T
Bernt bae705aa97 ARCHITECTURE: NFC roadmap, edge AI, audit logging
- 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
2026-06-29 16:24:48 +00:00

57 lines
2.1 KiB
Bash

#!/bin/bash
# Kör som root: sudo bash /home/bernt/.openclaw/workspace/nginx-pending/apply.sh
# Prepared by: Loke (AI agent) 2026-06-03
# Changes: /api/v1/ → port 3253, add /api/analytics/ → port 3210
set -e
PENDING_DIR="/home/bernt/.openclaw/workspace/nginx-pending"
HTML_PATCHES="/home/bernt/.openclaw/workspace/html-patches"
NGINX_SITES="/etc/nginx/sites-enabled"
OUROBOROS_PUB="/opt/amos/public/ouroboros"
echo "=== AAMOS nginx + UI apply script ==="
echo "Datum: $(date)"
echo ""
# ── 1. nginx config ──────────────────────────────────────────────────────────
echo "[1/3] Tillämpar nginx-config..."
cp "${PENDING_DIR}/ouroboros.wavult.com" "${NGINX_SITES}/ouroboros.wavult.com"
echo " ✅ Kopierade till ${NGINX_SITES}/ouroboros.wavult.com"
echo "[2/3] Testar nginx-konfiguration..."
nginx -t && echo " ✅ nginx -t OK"
echo "[3/3] Laddar om nginx..."
systemctl reload nginx && echo " ✅ nginx reloaded"
# ── 2. HTML-patches ──────────────────────────────────────────────────────────
if [ -d "${HTML_PATCHES}" ]; then
echo ""
echo "[4/4] Tillämpar HTML-patches..."
if [ -f "${HTML_PATCHES}/company-onboarding.html" ]; then
cp "${HTML_PATCHES}/company-onboarding.html" "${OUROBOROS_PUB}/company-onboarding.html"
echo " ✅ company-onboarding.html uppdaterad"
fi
if [ -f "${HTML_PATCHES}/app-index.html" ]; then
cp "${HTML_PATCHES}/app-index.html" "${OUROBOROS_PUB}/app/index.html"
echo " ✅ app/index.html uppdaterad"
fi
if [ -f "${HTML_PATCHES}/app-login.html" ]; then
cp "${HTML_PATCHES}/app-login.html" "${OUROBOROS_PUB}/app/login.html"
echo " ✅ app/login.html uppdaterad"
fi
fi
echo ""
echo "=== ✅ Allt klart! ==="
echo ""
echo "Kontrollera:"
echo " nginx status: systemctl status nginx"
echo " Port test: curl -I https://ouroboros.wavult.com/"
echo " /api/v1/ → port 3253 (ouroboros-orchestration)"
echo " /api/analytics/ → port 3210"