Try checking the ip which the fastapi runs on the server. In newer versions it is http://0.0.0.0:8000, In your case you missed a '/' use proxy_pass http://127.0.0.1:8000; instead of proxy_pass http:/127.0.0.1:8000;
detailed description in fastapi server setup with nginx