vgproxy

command module
v0.0.0-...-57a11c4 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2017 License: MIT Imports: 13 Imported by: 0

README

vgproxy

A vpngate.net mirror server, to host yourself, when the csv is not available.

Written in golang, this server caches the csv, removes comments to make it smaller (750kB to 120kB), supports https and gzip.

Start it with: vgproxy -url http://www.vpngate.net/api/iphone/

Full options:

vgproxy -url http://www.vpngate.net/api/iphone/ -addr 127.0.0.1 -port 8080 -cert cert.pem -key key.pem -sleep 300 -gzip

  -addr string
        addr to bind HTTP and HTTPS to (default: none i.e. 0.0.0.0)
  -cert string
        cert file for HTTPS on port 443 (default: none)
  -gzip
        enable gzip support (default: disabled)
  -key string
        key file for HTTPS on port 443 (default: none)
  -port int
        port to bind HTTP to (default 80)
  -sleep int
        seconds between refresh of cached csv (default 600)
  -url string
        remote csv url to connect to (default: none)
Compile

install go 1.8 and

go get github.com/natefinch/lumberjack
go get github.com/NYTimes/gziphandler
go build vgproxy.go
License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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