Goal: create a proxy forwarding requests to https://api.unsplash.com. The proxy adds Authorization and Accept-Version headers, to comply with the terms of use of the API.
First I create the rp.conf file with the content below.
Then I run nginx with:
docker run --rm -d -p 8080:8888 -v $PWD/rp.conf:/etc/nginx/nginx.conf nginx