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