server { listen 80; server_name status.bensanders.net; location / { proxy_pass http://localhost:3001; 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; # Added WebSocket support proxy_set_header Sec-WebSocket-Key $http_sec_websocket_key; proxy_set_header Sec-WebSocket-Version $http_sec_websocket_version; proxy_set_header Sec-WebSocket-Extensions $http_sec_websocket_extensions; # Improve performance of this reverse proxy proxy_buffering off; } # Redirect HTTP to HTTPS if needed for encryption # Uncomment the following lines if you have SSL enabled # return 301 https://$host$request_uri; }