SSL Config via process env
This commit is contained in:
parent
7cfcb54195
commit
ae7d123082
|
@ -3,7 +3,7 @@ var uniqid = require('uniqid');
|
|||
|
||||
let config = {
|
||||
domain: process.env.DOMAIN || "localhost:3000",
|
||||
https: false,
|
||||
https: (process.env.SSL === 'true') || false,
|
||||
getBaseUrl(){
|
||||
if(config.https){
|
||||
return `https://${config.domain}`;
|
||||
|
|
Loading…
Reference in New Issue