mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
Config: Return String Instead Of Buffer For Docker Secrets
Prevents "TypeError: Cannot freeze array buffer views with elements". Signed-off-by: Jonas Thelemann <e-mail@jonas-thelemann.de>
This commit is contained in:
parent
6755d1b989
commit
3d9c97fc65
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ const basePath = path.resolve('/var/run/secrets/')
|
|||
|
||||
function getSecret (secret) {
|
||||
const filePath = path.join(basePath, secret)
|
||||
if (fs.existsSync(filePath)) return fs.readFileSync(filePath)
|
||||
if (fs.existsSync(filePath)) return fs.readFileSync(filePath).toString('utf8')
|
||||
return undefined
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue