A fully transparent http proxy that can be used to swap out npm packages on the fly.
Environment
UPSTREAM_HOST=http://api.npmjs.org/
ADMIN_USER=bob
ADMIN_AUTH=i am awesome
VARDIR=/home/fproxy/data
TMPDIR=/tmp/fproxy
Usage: fproxy CMD $PAYLOAD [$PATH]
Arguments
$PAYLOAD the local file system path to the object
you wish to store in the proxy
$PATH the path to proxy on the server
defaults to $PAYLOAD
Commands
put put a new payload into the proxy cache
del remove a payload from the proxy cache
Options
-c --content-type TYPE set content type header
-e --encoding TYPE set encoding header
-H --header HEADER set a generic header
-x --expire DURATION expire cache after DURATION
Environment
FPROXY_HOST proxy hostname
FPROXY_PORT proxy port (default 80)
FPROXY_USER proxy user name
FPROXY_AUTH proxy authentication token