Sign inSign up

techthinkerorg/delay-proxy

By techthinkerorg

•Updated over 2 years ago

This is a simple delay and bandwith delay-proxy based on openresty (nginx).

Image
Networking
Developer tools
Web servers
0

233

techthinkerorg/delay-proxy repository overview

⁠A Delay Proxy

This is a simple delay and bandwith delay-proxy based on openresty (nginx).

⁠Run

To run the proxy just start a container with the desired proxy options.

$ docker run -ti --rm -p 8080:8080 \
      -e UPSTREAM=https://example-api.com/api \
      -e DELAY=5.0  \
      techthinkerorg/delay-proxy

⁠Configuration

All configuration is done by environment variables passed to the docker container.

  • UPSTREAM

    The location you like to proxy. This has to be a valid nginx proxy_pass⁠ URL.

  • DELAY

    The number of seconds to delay the response. The given value will be passed to ngx.sleep⁠. Default is 0.0.

  • LIMIT

    The limitation of the bandwidth in byes. The given value will be used as limit_rate⁠. Using units is possible (4k, 2M, ...). Default is 0 (no limit).

  • RESOLVER

    The resolver used for name resolution. The given value will be used as nginx resolver⁠. Default value is 8.8.8.8 (google DNS)

Tag summary

Content type

Image

Digest

sha256:3b928d694…

Size

44.3 MB

Last updated

over 2 years ago

docker pull techthinkerorg/delay-proxy:1.0.0