Skip to content

Commit

Permalink
Fix docker config setup
Browse files Browse the repository at this point in the history
  • Loading branch information
danrahn committed May 19, 2024
1 parent ef6de82 commit 149ada5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Server/MarkerEditorConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 149ada5

Please sign in to comment.