Você pode fazer isso com esses location
blocks:
location / {
try_files $uri $uri/ @proxy;
}
location @proxy {
proxy_pass http://localhost:3000;
proxy_redirect off;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
}