Skip to content

An http proxy that's just too tired and eventually shuts down

Notifications You must be signed in to change notification settings

ties-v/tired-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tired proxy

Docker image size

Altered version of superfly/tired-proxy

An HTTP proxy that exits after a settable idle time. Useful for creating scale to zero Docker containers. Includes the feature to wait for the port of the origin server to be in use.

Usage

Inside your container script, start your web application and fork the process with Tired proxy.

./my-web-server & /tired-proxy --origin=http://localhost:3000

The proxy is now served at port 8080

CLI options

Option type default description
idle-time int 60 idle time in seconds after which the application shuts down, if no requests where received
origin string http://localhost the origin host to which the requests are forwarded
port string 8080 port at which the proxy server listens for requests
wait-for-port int 0 maximum time in seconds to wait before the origin servers port is in use before starting the proxy server
verbose bool false verbose logging output

Get the docker image

docker pull tiesv/tired-proxy:latest

About

An http proxy that's just too tired and eventually shuts down

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 96.7%
  • Dockerfile 3.3%