From 6ab5ede805fb851b2745746324b02f1f3ab03676 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Fri, 15 Sep 2023 08:52:15 +0200 Subject: [PATCH] Fix YellowSquare not working in external web root setups --- index.js | 2 +- mod.info | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e1b98e5..272d269 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ try { } catch (ex) { // Can't determine version } -var configJSONS = JSON.parse(fs.readFileSync("config.json")); // Read configuration JSON +var configJSONS = JSON.parse(fs.readFileSync(__dirname + "/../../../config.json")); // Read configuration JSON class RequestBodyStream extends stream.Readable { constructor(sourceStream) { diff --git a/mod.info b/mod.info index efbb923..79ba1ad 100755 --- a/mod.info +++ b/mod.info @@ -1,4 +1,4 @@ { "name": "DorianTech YellowSquare JSGI engine for SVR.JS", - "version": "1.0.2" + "version": "1.0.3" }