mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-04-11 08:56:16 +00:00
Docker Secrets: Use Encoding Parameter Directly
Signed-off-by: Jonas Thelemann <e-mail@jonas-thelemann.de>
This commit is contained in:
parent
3d9c97fc65
commit
0be784351d
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).toString('utf8')
|
||||
if (fs.existsSync(filePath)) return fs.readFileSync(filePath, 'utf-8')
|
||||
return undefined
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue