From 0b2401146863f20bd868dafeb7c4de8bd6f6c34c Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 14 Mar 2023 20:32:35 +0100 Subject: [PATCH] docker_healthcheck.js should not create log files, #3677 --- docker_healthcheck.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker_healthcheck.js b/docker_healthcheck.js index c5d255595..2602cd706 100755 --- a/docker_healthcheck.js +++ b/docker_healthcheck.js @@ -1,5 +1,8 @@ const http = require("http"); -const config = require("./src/services/config"); +const ini = require("ini"); +const fs = require("fs"); +const dataDir = require("./src/services/data_dir"); +const config = ini.parse(fs.readFileSync(dataDir.CONFIG_INI_PATH, 'utf-8')); if (config.https) { // built-in TLS (terminated by trilium) is not supported yet, PRs are welcome