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
55 lines
1.4 KiB
Bash
Executable File
55 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "=== Fixing API Endpoints ==="
|
|
|
|
# Fix api.quixzoom.com
|
|
echo "Fixing api.quixzoom.com..."
|
|
sudo -n tee /etc/nginx/sites-available/quixzoom-api << 'EOF'
|
|
server {
|
|
listen 80;
|
|
server_name api.quixzoom.com;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
}
|
|
EOF
|
|
|
|
sudo -n ln -sf /etc/nginx/sites-available/quixzoom-api /etc/nginx/sites-enabled/
|
|
|
|
# Fix api.landvex.com
|
|
echo "Fixing api.landvex.com..."
|
|
sudo -n tee /etc/nginx/sites-available/landvex-api << 'EOF'
|
|
server {
|
|
listen 80;
|
|
server_name api.landvex.com;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
}
|
|
EOF
|
|
|
|
sudo -n ln -sf /etc/nginx/sites-available/landvex-api /etc/nginx/sites-enabled/
|
|
|
|
# Test nginx config
|
|
echo "Testing nginx configuration..."
|
|
sudo -n nginx -t
|
|
|
|
# Reload nginx
|
|
echo "Reloading nginx..."
|
|
sudo -n systemctl reload nginx
|
|
|
|
echo "=== API Endpoints Fixed ==="
|
|
echo "api.quixzoom.com → http://localhost:8000"
|
|
echo "api.landvex.com → http://localhost:8000"
|