mirror of https://github.com/Lissy93/dashy.git
Fix always true accident
This commit is contained in:
parent
6ee5286ebf
commit
a4e5402e5a
|
@ -12,7 +12,7 @@ const httpsCerts = {
|
||||||
|
|
||||||
const isDocker = !!process.env.IS_DOCKER;
|
const isDocker = !!process.env.IS_DOCKER;
|
||||||
const SSLPort = process.env.SSL_PORT || (isDocker ? 443 : 4001);
|
const SSLPort = process.env.SSL_PORT || (isDocker ? 443 : 4001);
|
||||||
const redirectHttps = process.env.REDIRECT_HTTPS || true;
|
const redirectHttps = process.env.REDIRECT_HTTPS ? process.env.REDIRECT_HTTPS : true;
|
||||||
|
|
||||||
const printNotSoGood = (msg) => {
|
const printNotSoGood = (msg) => {
|
||||||
console.log(`SSL Not Enabled: ${msg}`);
|
console.log(`SSL Not Enabled: ${msg}`);
|
||||||
|
|
Loading…
Reference in New Issue