Skip to content

Commit 064a731

Browse files
committed
0.2.0 release docs
1 parent 7338ee0 commit 064a731

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CHANGELOG
2+
=========
3+
4+
0.2.0 (2013-10-10)
5+
6+
- Added `options` parameter, ability to disable strict protocol checks. Thanks to kylegetson.
7+
8+
0.1.2 (2013-08-01)
9+
10+
- Removed a `console.log` call that was accidentally left in.
11+
12+
0.1.1 (2013-07-31)
13+
14+
- Initial release.

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,15 @@ You can do the same with `net` (raw TCP streams), `https`, and `spdy`. It will
3636

3737
var proxiedSpdy = require('proxywrap').proxy(require('spdy').server);
3838

39-
**Warning:** *All* traffic to your proxied server MUST use the PROXY protocol. If the first five bytes received aren't `PROXY`, the connection will be dropped. Obviously, the node server accepting PROXY connections should not be exposed directly to the internet; only the proxy (whether ELB, HAProxy, or something else) should be able to connect to node.
39+
**Warning:** By default, *all* traffic to your proxied server MUST use the PROXY protocol. If the first five bytes received aren't `PROXY`, the connection will be dropped. Obviously, the node server accepting PROXY connections should not be exposed directly to the internet; only the proxy (whether ELB, HAProxy, or something else) should be able to connect to node.
40+
41+
API
42+
---
43+
44+
### `proxy(Server[, options])`
45+
46+
Wraps something that inherits from the `net` module, exposing a `Server` and `createServer`. Returns the same module patched to support the PROXY protocol.
47+
48+
Options:
49+
50+
- `strict` (default `true`): Incoming connections MUST use the PROXY protocol. If the first five bytes received aren't `PROXY`, the connection will be dropped. Disabling this option will allow connections that don't use the PROXY protocol (so long as the first bytes sent aren't `PROXY`). Disabling this option poses a security risk; it should be enabled in production.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "proxywrap",
3-
"version": "0.1.2",
3+
"version": "0.2.0",
44
"description": "Wraps node's Server interfaces to be compatible with the PROXY protocol",
55
"main": "proxywrap.js",
66
"engines": { "node": ">= 0.10.0" },

0 commit comments

Comments
 (0)