Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aventer-ug/go-proxy
Reverse Proxy written in Golang
https://github.com/aventer-ug/go-proxy
docker golang proxy ssl
Last synced: 24 days ago
JSON representation
Reverse Proxy written in Golang
- Host: GitHub
- URL: https://github.com/aventer-ug/go-proxy
- Owner: AVENTER-UG
- License: gpl-3.0
- Created: 2020-12-09T07:58:39.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-20T23:49:52.000Z (about 1 year ago)
- Last Synced: 2024-05-01T10:52:59.556Z (9 months ago)
- Topics: docker, golang, proxy, ssl
- Language: Go
- Homepage:
- Size: 5.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# go-proxy
This is a proxy written in go.
There are some environment variables to configure go-proxy.
- API_PROXYBIND = Thats the IP of the interface where the proxy should listening. Default value is "0.0.0.0".
- API_PROXYPORT = Thats the Port where the proxy is listening. Default value is 10777.
- TARGET_URL = Thats the URL to where all the requests will be forwarded. No default value.
- SKIP_SSL = Do not check the ssl certificate of the target url. Default value is false.
- BLOCK_USERAGENT = With these variable, it is possible to block UserAgents. No default value.
- BLOCK_URL = Same like BLOCK_USERAGENT. Only for the URL String included GET parameters. No default value.
- LOGLEVEL = The loglevel of the output. Default value "info".## How to run
```bash
docker run -e TARGET_URL=https:// -p 10777:10777 avhost/go-proxy:latest
```## How to Block UserAgents
To block Bots and Spam who does not respect robots.txt, it is possible to defined and list with UserAgend should be blocked.
As example:```bash
BLOCK_USERAGENT="(Bot|The World)"
```This will block all UserAgents with the string "Bot" or "The World".
## How to Block URL's
To block whole URL's, you can use regular expression to create a filter.
```bash
BLOCK_USERAGENT="(arg=1|private)"
```This will block every access to the URL with the GET parameter "arg=1" or the string "private".