Optional
httpsOptional
keepHTTP Keep alive timeout.
Defins the port of the http server.
If ssl is defined, this port is used for the https server. If you want to have http and https
at the same time, use httpsPort
accordingly.
Optional
selfWhen true keys & certificates are created on-the-fly (for development purposes). Should not be used in production.
Optional
serverWhen external server should be used. If this is set, all other options are ignored.
Enables HTTPS.
Make sure to pass sslKey
and sslCertificate
as well (or use sslOptions).
Optional
sslOptional
sslOptional
sslOptional
sslOptional
sslIf defined https.createServer is used and all options passed as is to it.
Make sure to pass key
and cert
, as described in Node's https.createServer() documentation.
See https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
Generated using TypeDoc
If httpsPort and ssl is defined, then the https server is started additional to the http-server.
In a production deployment, you usually want both, http and https server. Set
port: 80
andhttpsPort: 443
to have both.