From 566432bf93bea90495df28c43b28723e075e581f Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@3nprob> Date: Tue, 16 Feb 2021 17:27:24 +0900 Subject: [PATCH] Allow overriding config path via XUD_CONF env var --- lib/Config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Config.ts b/lib/Config.ts index 30451de..bf73eb4 100644 --- a/lib/Config.ts +++ b/lib/Config.ts @@ -198,7 +198,7 @@ class Config { await this.mkDirIfNotExist(this.opendexdir); - const configPath = path.join(this.opendexdir, 'opendex.conf'); + const configPath = process.env.XUD_CONF || path.join(this.opendexdir, 'opendex.conf'); const configProps = await Config.readConfigProps(configPath); if (configProps) {