From a659e035125d15a5be2928f2c7409c1aa0a2e7d0 Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Wed, 9 Apr 2025 08:59:38 -0700 Subject: [PATCH] build: add new env variable `HEALTH_TIMER` allows you to specify how often a health check is done --- Dockerfile | 1 + tvapp2/index.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index f3972ee3..69f549c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" diff --git a/tvapp2/index.js b/tvapp2/index.js index cadce359..3a4961b8 100755 --- a/tvapp2/index.js +++ b/tvapp2/index.js @@ -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,