HTTPS Support

Based on the configuration the REST Api’s will be exposed over HTTPS rather than HTTP.

Set the below env variables to expose api’s ove HTTPS.

variable key value optional/required Description
REQUIRE_HTTPS true or false optional(default is false) Set this variable to true to expose api’s over HTTPS
SSL_CERT_PATH path of certificate file required(if REQUIRE_HTTPS is true) The path of the ssl certificate file
SSL_KEY_PATH path of private key file required(if REQUIRE_HTTPS is true) The path of the ssl private key file

For example

Windows

> set REQUIRE_HTTPS=true
> set SSL_CERT_PATH=D:\certificates\private\certificate.pem
> set SSL_KEY_PATH=D:\certificates\private\privatekey.pem
> node .

Linux

$ export REQUIRE_HTTPS=true
$ export SSL_CERT_PATH=/certificates/private/certificate.pem
$ export SSL_KEY_PATH=/certificates/private/privatekey.pem
$ node .
Table of contents: