mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-28 08:04:46 +02:00
Fix healthcheck.js without ssl
This commit is contained in:
parent
50dc62373d
commit
2839821ab1
@ -10,7 +10,7 @@ const http = require(isSsl ? 'https' : 'http');
|
|||||||
|
|
||||||
/* Location of the server to test */
|
/* Location of the server to test */
|
||||||
const isDocker = !!process.env.IS_DOCKER;
|
const isDocker = !!process.env.IS_DOCKER;
|
||||||
const port = isSsl ? (process.env.SSL_PORT || (isDocker ? 443 : 4001)) : (process.env.PORT || isDocker ? 80 : 4000);
|
const port = isSsl ? (process.env.SSL_PORT || (isDocker ? 443 : 4001)) : (process.env.PORT || (isDocker ? 80 : 4000));
|
||||||
const host = process.env.HOST || '0.0.0.0';
|
const host = process.env.HOST || '0.0.0.0';
|
||||||
const timeout = 2000;
|
const timeout = 2000;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user