Strengthen credential security rules after violation
This commit is contained in:
parent
66423cf66b
commit
faff102d34
7 changed files with 136 additions and 29 deletions
|
|
@ -4,7 +4,7 @@ const fs = require('fs');
|
|||
const path = require('path');
|
||||
const https = require('https');
|
||||
|
||||
const CRED_PATH = path.join(__dirname, '..', '.credentials', 'audiobookshelf.env');
|
||||
const CRED_PATH = process.env.CRED_FILE || path.join(__dirname, '..', '.credentials', 'services.env');
|
||||
|
||||
function loadCreds() {
|
||||
const raw = fs.readFileSync(CRED_PATH, 'utf8');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue