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)
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 settingforceTLS
to true.Configuration Options
securePort
forceTLS
https://
protocol if the request protocol is unsecuressl.keyFile
securePort
is set. Path to file containing private key (.key or .pem)ssl.certFile
securePort
is set. Path to file containing certificate (.crt or .pem)ssl.caFile