mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-09-01 09:41:13 +00:00
fix: Restrict JWT key file permissions to 0600
This commit is contained in:
parent
ab893706da
commit
29687987b2
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ const generateKeys = () => {
|
|||
|
||||
// Write keys config
|
||||
try {
|
||||
fs.writeFileSync(keysFile, JSON.stringify(keys, null, 2));
|
||||
fs.writeFileSync(keysFile, JSON.stringify(keys, null, 2), { mode: 0o600 });
|
||||
} catch (err) {
|
||||
logger.error(`Could not write JWT key pair to config file: ${keysFile}: ${err.message}`);
|
||||
process.exit(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue