Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

add xspace-agent/agent-voice-chat/deploy/nginx.conf

overstepping1727e3c1eeae
diff --git a/xspace-agent/agent-voice-chat/deploy/nginx.conf b/xspace-agent/agent-voice-chat/deploy/nginx.conf
new file mode 100644
index 000000000..53e4dd216
--- /dev/null
+++ b/xspace-agent/agent-voice-chat/deploy/nginx.conf
@@ -0,0 +1,63 @@
+# Nginx reverse proxy configuration for agent-voice-chat
+# Replace "yourdomain.com" with your actual domain.
+
+# Redirect HTTP -> HTTPS
+server {
+ listen 80;
+ server_name yourdomain.com;
+ return 301 https://$host$request_uri;
+}
+
+server {
+ listen 443 ssl http2;
+ server_name yourdomain.com;
+
+ # SSL — issued by Certbot / Let's Encrypt
+ ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
+
+ # Modern SSL settings
+ ssl_protocols TLSv1.2 TLSv1.3;
+ ssl_ciphers 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384';
+ ssl_prefer_server_ciphers off;
+ ssl_session_timeout 1d;
+ ssl_session_cache shared:SSL:10m;
+
+ # HSTS (1 year)
+ add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
+
+ # Security headers
+ add_header X-Content-Type-Options "nosniff" always;
+ add_header X-Frame-Options "SAMEORIGIN" always;
+ add_header Referrer-Policy "strict-origin-when-cross-origin" always;
+
+ # Upload limit (audio chunks)
+ client_max_body_size 10M;
+
+ # Proxy to Node.js server
+ location / {
+ proxy_pass http://app:3000;
+ proxy_http_version 1.1;
+ 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;
+
+ # WebSocket support (Socket.IO)
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+
+ proxy_read_timeout 60s;
+ proxy_connect_timeout 10s;
+ }
+
+ # Health check endpoint — no auth, used by load balancers
+ location /api/health {
+ proxy_pass http://app:3000;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ access_log off;
+ }
+}
+
+