mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-22 06:33:09 -07:00
adds dotEnv config
This commit is contained in:
parent
28440fea78
commit
b6b50a102b
2 changed files with 4 additions and 2 deletions
|
@ -32,6 +32,8 @@
|
|||
}
|
||||
},
|
||||
|
||||
"dotenv": true,
|
||||
|
||||
"storage": {
|
||||
"type": "file"
|
||||
},
|
||||
|
|
|
@ -46,8 +46,8 @@ if (!config.storage.type) {
|
|||
|
||||
var Store, preferredStore;
|
||||
|
||||
if (config.storage.password == '.env') {
|
||||
config.storage.password = process.env.STORAGE_PASSWORD
|
||||
if (config.dotEnv) {
|
||||
config.storage.password = process.env.STORAGE_PASSWORD;
|
||||
}
|
||||
|
||||
if (process.env.REDISTOGO_URL && config.storage.type === 'redis') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue