title: nginx: add Key to Google Cloud storage url
body: <p>1) <br>I have nginx running as a reverse proxy. I would like to add a Key to Google Cloud storage. Can you do this in the nginx.conf. Then the nginx proxy would work as a client requesting the Google Cloud Store?</p>
  
  <p>2)<br>
  I am saving the image with a <a href="https://github.com/GoogleCloudPlatform/storage-getting-started-go/blob/master/storage-sample.go" rel="nofollow">go client</a> and it gives me a
  SelfLink wich I save in my database. But the SelfLink differ from the link in <a href="https://console.developers.google.com" rel="nofollow">Google developer Console</a>. I guess because of the account login.</p>
  
  <p>Link from Google Console(note that I have used {encoding} instead of the real encoding):</p>
  
  <pre><code>https://{encoding}-apidata.googleusercontent.com/download/storage/v1_internal/b/test-test/o/imgres.jpg?qk={encoding}
  </code></pre>
  
  <p><br>
  SelfLink<br></p>
  
  <pre><code>https://www.googleapis.com/storage/v1/b/test-test/o/imgres.jpg
  </code></pre>
  
  <p>What kind og key should I use together with the SelfLink to access Google Cloud Store. The SelfLink just gives me:</p>
  
  <pre><code>{
   "error": {
    "errors": [
     {
      "domain": "global",
      "reason": "required",
      "message": "Login Required",
      "locationType": "header",
      "location": "Authorization"
     }
    ],
    "code": 401,
    "message": "Login Required"
   }
  }
  </code></pre>
  
  <p>How should I use this(SelfLink) link together with what key?</p>
  
  <p>Thanks in advance</p>