NGINX - Serving a create-react-app application on one port and my api on another port

From comments

There is problem with quotation in proxy_pass. It should looks like:

location / {
    proxy_set_header   X-Forwarded-For $remote_addr;
    proxy_set_header   Host $http_host;
    proxy_pass         http://127.0.0.1:5000;
}

location /api {
    proxy_pass         http://127.0.0.1:9000;
}