Trouble in loading data from local Orthanc server

I want to get the data from my local Orthanc server but getting a proxy error:

image

My default.js file looks like this:

image

I am using Nginx to proxy-pass the Orthanc-server:

image

When I am going to this url http://localhost/orthanc/dicom-web/studies I am able to see an array object of studies.

While searching for my problem, I saw a solution to make a change in orthanc.json file for DicomWeb, so I also updated my orthanc.json file:

image

I am not sure where am I going wrong.
When I am running the project with yarn run dev:orthanc, it is working fine.
Can you please suggest me correct way of rendering the data from my local Orthanc server?