SSL Config via process env

This commit is contained in:
Nicolai Ort 2021-08-12 20:26:33 +02:00
parent 7cfcb54195
commit ae7d123082
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 1 additions and 1 deletions

View File

@ -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}`;