https://github.com/pietroglyph/bypass-webproxy
A webproxy written in Go.
https://github.com/pietroglyph/bypass-webproxy
golang goquery web-proxy
Last synced: 10 months ago
JSON representation
A webproxy written in Go.
- Host: GitHub
- URL: https://github.com/pietroglyph/bypass-webproxy
- Owner: pietroglyph
- License: gpl-3.0
- Created: 2016-09-25T05:50:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-20T21:12:55.000Z (almost 7 years ago)
- Last Synced: 2025-03-24T16:01:54.669Z (11 months ago)
- Topics: golang, goquery, web-proxy
- Language: Go
- Size: 4.49 MB
- Stars: 6
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bypass-webproxy [](https://travis-ci.org/pietroglyph/bypass-webproxy) [](https://goreportcard.com/report/github.com/pietroglyph/bypass-webproxy)
A simple webproxy written in Go that uses Goquery to parse and modify proxied HTML pages so that links, images, and other resources are fed back through the proxy. Bypass also serves static files.
## Dependencies
+ [goquery](https://github.com/PuerkitoBio/goquery)
+ [osext](https://github.com/kardianos/osext)
+ [iconv-go](https://github.com/djimenez/iconv-go)
+ [go-encoding](https://github.com/mattn/go-encoding)
## Building
[Install Go](https://golang.org/doc/install) and [set the `$GOPATH` environment variable](https://golang.org/doc/code.html#GOPATH).
Run the following commands (assumes that you're using BASH):
1. ` $ go get github.com/pietroglyph/bypass-webproxy`
2. ` $ cd $GOPATH/src/github.com/pietroglyph/bypass-webproxy`
3. ` $ go get -d ./...`
4. ` $ go install`
## Usage
With the defualt arguments, your working directory when running Bypass needs to contain a directory called `pub`, if you want to have a working web interface. You probably want the `pub` folder in Bypass' source directory.
The following should get Bypass running if you've already built it:
1. ` $ cd $GOPATH/src/github.com/pietroglyph/bypass-webproxy`
2. ` $ $GOPATH/bin/bypass-webproxy`
3. Open http://localhost:8000 in your favorite browser
To see all the possible arguments type ` $ $GOPATH/bin/bypass-webproxy -h`.