Skip to content

Lightweight proxy server for Go, with support for domain white-listing and AES-256 token based authentication

Notifications You must be signed in to change notification settings

joshuaray/go-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Go

go-proxy

Proxy server for Go

Request Example

const http = require('http');

function request() {
  const options = {
    hostname: 'localhost',
    port: 33333,
    path: 'http://localhost',
    method: 'GET',
    headers: {
      'X-Token': 'Authentication token',
      'X-Url': 'Proxy URL'
    }
  };

  const req = http.request(options, function (r) {
    res.writeHead(r.statusCode, r.headers);
    r.pipe(res, {
      end: true
    });
  });
}

Headers

  • X-Token: AES-256 encoded value in base64 using scrypt derivation function
  • X-Url: Proxy URL (Domain may be whitelisted if configured)

About

Lightweight proxy server for Go, with support for domain white-listing and AES-256 token based authentication

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages