mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-21 13:52:59 +01:00
fix: Restrict JWT key file permissions to 0600
This commit is contained in:
1 parent
ab893706da
commit
29687987b2
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user