Configure production to run in https
This commit is contained in:
16
server/ssl-config.js
Normal file
16
server/ssl-config.js
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Created by nathanleniz on 6/16/15.
|
||||
*/
|
||||
|
||||
var path = require('path');
|
||||
var fs = require('fs');
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
exports.privateKey =
|
||||
fs.readFileSync(path.join(__dirname,
|
||||
'../../private/privatekey.pem')).toString();
|
||||
exports.certificate =
|
||||
fs.readFileSync(path.join(__dirname,
|
||||
'../../private/certificate.pem')).toString();
|
||||
|
||||
}
|
Reference in New Issue
Block a user