New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dynamic-reverse-proxy

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamic-reverse-proxy - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0-alpha1

.kbignore

1

examples/example.js

@@ -6,3 +6,2 @@ var http = require("http"),

server.on("request", function (req, res) {
console.log(JSON.stringify(req.headers, true, 2));
if (req.url.match(/^\/register/i)) {

@@ -9,0 +8,0 @@ dynamicProxy.registerRouteRequest(req, res);

@@ -1,2 +0,11 @@

var DynamicProxy = require("./lib/dynamicProxy");
module.exports = function () { return new DynamicProxy(); };
var config = require("./config")
var isDebug = config.debug ? true : false;
module.exports = function () {
if (isDebug) {
var pxy = new (require("./lib/debug/dynamic-proxy.js"))();
pxy.debug = true;
return pxy;
} else {
return new (require("./lib/release/dynamic-proxy.js"))();
}
};
{
"author": "Andrew Dunkman <andrew@dunkman.org>",
"name": "dynamic-reverse-proxy",
"version": "0.6.0",
"contributors": [
{
"name": "Andrew Dunkman",
"email": "andrew@dunkman.org"
},
{
"name": "Joe Andaverde"
},
{
"name": "Jeremy Sellars",
"email": "jeremy.sellars@softekinc.com"
}
],
"license": "MIT",
"version": "0.7.0-alpha1",
"scripts": {
"prepublish": "lein build-release & keybase dir sign"
},
"repository": {
"url": "git://github.com/softek/dynamic-reverse-proxy.git"
"type": "git",
"url": "https://github.com/softek/dynamic-reverse-proxy"
},
"bugs": {
"url": "https://github.com/softek/dynamic-reverse-proxy/issues"
},
"keywords": [
"reverse proxy"
],
"dependencies": {
"http-proxy": "1.1.4"
"http-proxy": "1.9.0"
},
"engines": {
"node": "*"
},
"devDependencies": {
"closurecompiler-externs": "^1.0.4"
}
}

@@ -5,4 +5,24 @@ # dynamic-reverse-proxy

[Dynamic-reverse-proxy](http://github.com/softek/dynamic-reverse-proxy) exposes several web apps on a single port so you can:
* **Use the right language for the job.** Maybe you want to use the best parts of [Clojure](http://clojure.org/), [Node.js](https://nodejs.org/about/), [Erlang](http://www.erlang.org/), [Ruby](https://www.ruby-lang.org/). Put each project on its own port and use dynamic-reverse-proxy to expose a unified front to the world.
* **Partition parts of the web app for stability**. Put experimental features in their own process and relay the traffic.
* **Only bother with HTTPS in one place**. You can expose HTTPS to the world, but your "behind the proxy" apps don't need to worry about HTTPS.
##### Latest stable release: 0.6.0 [Doc](https://github.com/softek/dynamic-reverse-proxy/blob/0b770e23c59818fe514e41897f7bf609efff474b/README.md)
`npm install dynamic-reverse-proxy`
##### Latest unstable release: 0.7.0-alpha1
`npm install dynamic-reverse-proxy@0.7.0-alpha1`
## Starting the server
#### Stand-alone (available starting 0.7.0)
```dos
npm install dynamic-reverse-proxy
cd node_modules\dynamic-reverse-proxy
SET port=3000
npm start
```
#### With code
```javascript

@@ -96,1 +116,14 @@ var http = require("http"),

```
## Troubleshooting
This package comes with both an optimized/minified "release" version, and a more-readable "debug" version. To use the debug version, set `debug: true` in ./config.js.
## Development
### Roadmap
* Allowing HOST-specific routes (`http://example.com/` gets a different route than `http://subdomain.example.com/` depending on the host header)
* Requiring encryption for some routes (for example, force the `/login` route to use HTTPS)
* Performance improvements for proxies with many routes. Before v0.7.0, the complexity was o(n) and O(n) because it uses the longest prefix that works. This may become more important when certain areas of sites force HTTPS - that may use more routes, depending on your URL scheme.
### Scripts
* To set the version (in package.json, project.clj, resources/version.js): `lein set-version 0.x.x-alphaX`. You can also `:dry-run true` to [see what changes would be made](https://github.com/pallet/lein-set-version#dry-run-mode).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc