mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
feat(server): add CONFIG_DIRECTORY env var to control config directory location
This commit is contained in:
@@ -137,7 +137,11 @@ interface AllSettings {
|
||||
notifications: NotificationSettings;
|
||||
}
|
||||
|
||||
const SETTINGS_PATH = path.join(__dirname, '../../config/settings.json');
|
||||
const SETTINGS_PATH = path.join(
|
||||
__dirname,
|
||||
'../../',
|
||||
`${process.env.CONFIG_DIRECTORY || '/config'}/settings.json`
|
||||
);
|
||||
|
||||
class Settings {
|
||||
private data: AllSettings;
|
||||
|
Reference in New Issue
Block a user