A simple NGiNX proxy server with inbound traffic secured through Basic Auth with JSON formatted logs. Credentials are computed at runtime through entrypoint.sh
.
Get the image at Docker Hub.
docker build -t quantworks/ambassador:latest .
Run the container.
docker run -it \
-p 80:80 \
-e DESTINATION=https://min-api.cryptocompare.com \
quantworks/ambassador:latest
Test it!
curl -s 'http://0.0.0.0/data/price?fsym=ETH&tsyms=BTC,USD,EUR' | jq .
DEBUG
: defaultundefined
USERNAME
: defaultuser
PASSWORD
: defaultpass
DESTINATION
: defaulthttps://www.google.com
MIT