Strapi v4 deployed to AWS EBS trying to load resource from localhost

The default port is 1337
Eb log does not show any error, however nginx/error.log shows the following;

an upstream response is buffered to a temporary file /var/lib/nginx/tmp/proxy/1/00/0000000001 while reading upstream

I tried resolving this issue, and I’m not sure if it’s related to the one under discussion