mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 02:35:42 -04:00
build: add new env variable HEALTH_TIMER
allows you to specify how often a health check is done
This commit is contained in:
@@ -76,6 +76,7 @@ ENV FILE_URL="urls.txt"
|
||||
ENV FILE_M3U="playlist.m3u8"
|
||||
ENV FILE_EPG="xmltv.xml"
|
||||
ENV FILE_TAR="xmltv.xml.gz"
|
||||
ENV HEALTH_TIMER=600000
|
||||
ENV LOG_LEVEL=4
|
||||
ENV TZ="Etc/UTC"
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@ const envFileM3U = process.env.FILE_M3U || 'playlist.m3u8';
|
||||
const envFileXML = process.env.FILE_EPG || 'xmltv.xml';
|
||||
const envFileGZP = process.env.FILE_GZP || 'xmltv.xml.gz';
|
||||
const envWebEncoding = process.env.WEB_ENCODING || 'deflate, br';
|
||||
const envHealthTimer = process.env.HEALTH_TIMER || 600000;
|
||||
const LOG_LEVEL = process.env.LOG_LEVEL || 10;
|
||||
|
||||
/*
|
||||
@@ -1268,6 +1269,7 @@ const server = http.createServer( ( request, response ) =>
|
||||
sizeGZP: FILE_GZP_SIZE,
|
||||
dateGZP: FILE_GZP_MODIFIED,
|
||||
|
||||
healthTimer: envHealthTimer,
|
||||
appName: name,
|
||||
appVersion: version,
|
||||
appUrlGithub: repository.url,
|
||||
|
||||
Reference in New Issue
Block a user