cacheserver

command module
v0.0.0-...-96afc83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 4 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL