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?
I am saving the image with a go client and it gives me a SelfLink which I save in my database. But the SelfLink differ from the link in Google developer Console. I guess because of the account login.
Link from Google Console(note that I have used {encoding} instead of the real encoding):
https://{encoding}-apidata.googleusercontent.com/download/storage/v1_internal/b/test-test/o/imgres.jpg?qk={encoding}
SelfLink
https://www.googleapis.com/storage/v1/b/test-test/o/imgres.jpg
What kind of key should I use together with the SelfLink to access Google Cloud Store. The SelfLink just gives me:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Login Required",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Login Required"
}
}
How should I use this(SelfLink) link together with what key?
Thanks in advance