Closed keerthivasan-r closed 4 years ago
It seems like this change got made already in the form of server.ssl
being checked as the first clause in the boolean expression. If I am mistaken please open another issue.
Hmm,then. I think i didn't tell it clearly. In the below script, the value of USE_HTTPS gets the value of server.ssl.cert
instead of server.ssl
. That creates the problem, when it is used by helmet config
this.env = {
IS_PRODUCTION: !process.env.NODE_ENV || process.env.NODE_ENV === 'production',
USE_HTTPS: server.ssl && server.ssl.key && server.ssl.cert,
};
Hope you get my point now!
There was a minor code fix in the SSL config setup
fixes issue #208