movableink / doorman

HTTP Proxy + OAuth
MIT License
167 stars 52 forks source link

Support for HTTPS #26

Closed AndrewJo closed 9 years ago

AndrewJo commented 9 years ago

This PR adds support for HTTPS connections. HTTPS server can be enabled by setting the securePort (e.g. 443). You may also force users to use the secure connection by setting forceTLS to true.

Configuration Options

Key Type Description
securePort Integer If set, enables HTTPS mode
forceTLS Boolean Optional: If true, forces a 301 redirect to https:// protocol if the request protocol is unsecure
ssl.keyFile String Required if securePort is set. Path to file containing private key (.key or .pem)
ssl.certFile String Required if securePort is set. Path to file containing certificate (.crt or .pem)
ssl.caFile String Optional: Path to file containing Intermediate CA certificate (.crt or .pem)