make configuration file directory configurable with MISSKEY_CONFIG_DIR environment variable

This commit is contained in:
Ruby Iris Juric 2025-05-25 23:09:25 +10:00
parent 9e8e08eb57
commit 259eab513e
No known key found for this signature in database

View file

@ -346,7 +346,7 @@ const _dirname = dirname(_filename);
/** /**
* Path of configuration directory * Path of configuration directory
*/ */
const dir = `${_dirname}/../../../.config`; const dir = process.env.MISSKEY_CONFIG_DIR ?? `${_dirname}/../../../.config`;
/** /**
* Path of configuration file * Path of configuration file