Compare commits
2 commits
a47d938b7e
...
50a3564fd4
Author | SHA1 | Date | |
---|---|---|---|
|
50a3564fd4 | ||
|
3c856e5fe5 |
1 changed files with 10 additions and 0 deletions
10
brainlet/secret.js
Executable file
10
brainlet/secret.js
Executable file
|
@ -0,0 +1,10 @@
|
|||
module.exports = {
|
||||
jwtPrivateKey: "KEY"
|
||||
};
|
||||
|
||||
// Set default values
|
||||
// You shouldn't need to touch this for configuring this
|
||||
if (module.exports.jwtPrivateKey === "KEY") {
|
||||
console.error("[*] [config] jwtPrivateKey was not specified in secret.js. A randomly generated private key will be used instead");
|
||||
module.exports.jwtPrivateKey = require("crypto").randomBytes(129).toString("base64");
|
||||
}
|
Reference in a new issue