dev-bridge

command module
v0.0.0-...-925949f Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2015 License: MIT Imports: 16 Imported by: 0

README

dev-bridge

An http(s) proxy which accepts incoming connections and, depending on their Host, directs them to a particular other machine. Machines register themselves using periodic UDP pings.

dev-bridge supports websockets as well.

Purpose

The purpose of dev-bridge is, like the name implies, to create a bridge between the outer world and dev machines on a vpn. In this way developers can simply have their environment connected to the vpn and have it accessible to others, even if the others' device isn't on the vpn (which makes mobile testing significantly easier), all without anyone mucking around with NATs and port forwarding and such.

Example

Machine Foo sends the following UDP packet periodically to dev-bridge over the vpn:

{
    "prefix":"foo",
    "port":80,
    "https":false
}

At this point, any requests with a Host with the prefix foo. will:

  • Have the foo. prefix stripped from their Host
  • Have X-Forwarded-For added/modified to reflect the forwarding
  • Be forwarded to the ip the udp packet came from, on port 80, without ssl (as per the json blob.

Other features

  • Ability to whitelist Host suffixes

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package config provides for all configurable parameters dev-bridge can have
Package config provides for all configurable parameters dev-bridge can have
Package router deals solely with managing the mapping from host prefix to routing information for requests directed there
Package router deals solely with managing the mapping from host prefix to routing information for requests directed there

Jump to

Keyboard shortcuts

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