Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add more examples of endpoints

  • Loading branch information...
commit e50e993c798d64c2f1b162e0c88efe64ea2335b4 1 parent 63e5734
Matt Haggard authored

Showing 2 changed files with 21 additions and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  .gitignore
  2. +20 0 README.md
1  .gitignore
@@ -3,3 +3,4 @@
3 3 _trial_temp/
4 4 dist/
5 5 MANIFEST
  6 +build/
20 README.md
Source Rendered
@@ -9,6 +9,7 @@ Graceful swan takes flight. Hunter eyes his prey. KABLAM! Hunter falls. Swan
9 9 Install the dependencies:
10 10
11 11 pip install Twisted
  12 + pip install PyOpenSSL # if you want SSL support
12 13
13 14 Either clone repo:
14 15
@@ -51,6 +52,25 @@ Stop forwarding:
51 52 grace stop
52 53
53 54
  55 +## It's not just for HTTP ##
  56 +
  57 +Because ``grace`` uses [Twisted's excellent endpoints](http://twistedmatrix.com/documents/current/api/twisted.internet.endpoints.serverFromString.html), you can forward just about any traffic to just about anywhere. Here's SSL to TCP:
  58 +
  59 + grace start ssl:443:privateKey=key.pem:certKey=crt.pem tcp:host=127.0.0.1:port=7500
  60 +
  61 +TCP to SSL:
  62 +
  63 + grace start tcp:9000 ssl:host=www.google.com:port=443:caCertsDir=/etc/ssl/certs
  64 +
  65 +TCP to domain socket:
  66 +
  67 + grace start tcp:9000 unix:/var/foo/bar
  68 +
  69 +Domain socket to TCP:
  70 +
  71 + grace start unix:/var/foo/bar tcp:host=127.0.0.1:port=7500
  72 +
  73 +
54 74 ## Planned usage not yet supported ##
55 75
56 76 Upgrade ``grace`` to a new version and swap out the current ``grace`` process with a new one:

0 comments on commit e50e993

Please sign in to comment.
Something went wrong with that request. Please try again.