Rust Rocket Nginx

server {
    listen 8089;
    server_name yourdomain.com;

    location / {
        # Forward requests to rocket port
        proxy_pass http://0.0.0.0:8000;
        proxy_buffering off; # Single Page App work faster with it
        proxy_set_header X-Real-IP $remote_addr;
    }
}