D
D
Daniil Lebedinsky2019-04-25 14:15:57
Nginx
Daniil Lebedinsky, 2019-04-25 14:15:57

How to make proxy_pass behind a picture by a link in a query?

The bottom line is this:
NGINX accepts requests at a URL like: https://domain.com/api/link?uri=domain2.com/api/im...
You need to make proxy_pass in such a way that as a result, an image is returned in response to the request, which lies at the address passed in the uri parameter

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-04-25
@Lebed71

location = /api/link {
    resolver 8.8.8.8;
    proxy_pass http://$arg_uri;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question