Skip to content

Instantly share code, notes, and snippets.

@progrium
Created May 13, 2010 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save progrium/400433 to your computer and use it in GitHub Desktop.
Save progrium/400433 to your computer and use it in GitHub Desktop.
from twisted.internet import reactor, ssl
from twisted.protocols import portforward
reactor.listenSSL(443, portforward.ProxyFactory(BACKEND_HOST, BACKEND_PORT), ssl.DefaultOpenSSLContextFactory(SSL_KEY_PATH, SSL_CERT_PATH))
reactor.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment