Sign inSign up

wizardonmoon/digest-proxy

By wizardonmoon

•Updated almost 2 years ago

A proxy server configured to query web server with digest auth

Image
Networking
API management
Web servers
0

239

wizardonmoon/digest-proxy repository overview

⁠About

This is a simple proxy server to proxy the request to the target webserver with digest auth using configured environment variables

⁠How to run

You can start a container using this image with the environment variables configured

Variable nameDefault valueDescription
TARGET_URLThe target web server address e.g. https://api.example.com:8080⁠
USERNAMEThe username to query the web server
PASSWORDThe password to query the web server
PORT3000The port digest-proxy listen
docker run -d -e TARGET_URL='https://api.example.com' -e USERNAME='someuser' -e PASSWORD='password' -e PORT='3000' -p 3000:3000  wizardonmoon/digest-proxy:0.1.0

After the container is started, you can call the proxy server instead of calling the original web server.

For example, if you originally call the web server using the following command

curl --digest --user someuser:password -L 'https://api.example.com/info'

instead, you can call the proxy server using the following command

curl -L 'http://127.0.0.1:3000/info'

Tag summary

Content type

Image

Digest

sha256:87f37ef59…

Size

72.6 MB

Last updated

almost 2 years ago

docker pull wizardonmoon/digest-proxy:0.1.0