mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-04-12 03:54:42 +00:00
Merge pull request #168 from dargmuesli/fix/docker-secret-buffer
Config: Return String Instead Of Buffer For Docker Secrets
This commit is contained in:
commit
529075fd67
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ const basePath = path.resolve('/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, 'utf-8')
|
||||
return undefined
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue