From 149ada596f9a82666f2915fdad83e001aae6b4a2 Mon Sep 17 00:00:00 2001 From: danrahn Date: Sun, 19 May 2024 10:57:02 -0700 Subject: [PATCH] Fix docker config setup --- Server/MarkerEditorConfig.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Server/MarkerEditorConfig.js b/Server/MarkerEditorConfig.js index ef1d3eb..267555e 100644 --- a/Server/MarkerEditorConfig.js +++ b/Server/MarkerEditorConfig.js @@ -333,10 +333,11 @@ class MarkerEditorConfig extends ConfigBase { if (process.env.IS_DOCKER) { // Config _should_ have the right values in Docker, but "help" the user out // by forcing it in case they were altered afterwards. - this.#dataPath = '/PlexDataDirectory'; - this.#dbPath = join(this.#dataPath, 'Plug-in Support/Databases/com.plexapp.plugins.library.db'); - this.#host = '0.0.0.0'; - this.#port = 3232; + this.#dataPath = new Setting('/PlexDataDirectory', '/PlexDataDirectory'); + const dbPath = join(this.#dataPath.value(), 'Plug-in Support/Databases/com.plexapp.plugins.library.db'); + this.#dbPath = new Setting(dbPath, dbPath); + this.#host = new Setting('0.0.0.0', '0.0.0.0'); + this.#port = new Setting(3232, 3232); } else { this.#dataPath = this.#getOrDefault('dataPath', MarkerEditorConfig.getDefaultPlexDataPath()); this.#dbPath = this.#getOrDefault(