Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

An http(s) proxy which accepts incoming connections and, depending on their Host, directs them to a particular other machine.

License

levenlabs/dev-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An http(s) proxy which accepts incoming connections and, depending on their Host, directs them to a particular other machine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages