title: NGINX read body from proxy_pass response
body: <p>I have two servers:</p>
  
  <ol>
  <li>NGINX (it exchanges file id to file path)</li>
  <li>Golang (it accepts file id and return it's path)</li>
  </ol>
  
  <p><strong>Ex:</strong> When browser client makes request to <code>https://example.com/file?id=123</code>, NGINX should proxy this request to Golang server <code>https://go.example.com/getpath?file_id=123</code>, which will return the response to NGINX:</p>
  
  <pre><code>{
    data: {
      filePath: "/static/..."
    },
    status: "ok"
  }
  </code></pre>
  
  <p>Then NGINX should get value from filePath and return file from the location.</p>
  
  <p><strong>So the question is how to read response (get filePath) in NGINX?</strong></p>