Skip to content

Basically proxies a given website and caches the responses

License

Notifications You must be signed in to change notification settings

chrisvdg/cacheserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cacheserver

Cacheserver is a very simply http caching proxy.
This project is meant to be a proxy for (large) downloads on http servers and not meant to proxy a human interfaceing website.

Install

Go get

go get -u github.com/chrisvdg/cacheserver

Build from this repository

go build

# install in $GO/bin
go install

Usage

# Listen to localhost only on port 8000 and proxy google
cacheserver -l "127.0.0.1:8000" -p http://google.com

# Listen to all incoming requests on port 9000 and proxy download.archive and show debug output
cacheserver -l ":9000" -p http://download.archive -v

Docker

A docker file has been added to generate a docker image

To build the docker image

docker build -t cacheserver .

Run a container with image

docker run --rm -ti cacheserver -l ":80" -p http://download.archive -v

A prebuilt image has been uploaded to docker hub. To import the image

docker pull chrisvdg/cacheserver

About

Basically proxies a given website and caches the responses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published