Allow user files directory to be configured via env vars
This commit is contained in:
parent
065f87c2e8
commit
dde1495854
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ app.use(errorMiddleware);
|
||||||
async function init() {
|
async function init() {
|
||||||
await actual.init({
|
await actual.init({
|
||||||
config: {
|
config: {
|
||||||
dataDir: join(__dirname, 'user-files')
|
dataDir: join(__dirname, process.env.ACTUAL_USER_FILES || config.files)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue