# Nginx config for rivet.rateright.com.au # Step 1: HTTP only (for certbot challenge). Certbot will add SSL. server { listen 80; listen [::]:80; server_name rivet.rateright.com.au; # Let certbot do its thing location /.well-known/acme-challenge/ { root /var/www/html; } # Proxy to Clawdbot voice webhook location / { proxy_pass http://127.0.0.1:3334; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; 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; proxy_connect_timeout 60s; proxy_send_timeout 60s; proxy_read_timeout 300s; proxy_buffering off; } location /health { proxy_pass http://127.0.0.1:3334/health; access_log off; } }