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