From 3c856e5fe552d9899912f7f849ae0d23d11ca026 Mon Sep 17 00:00:00 2001 From: hippoz Date: Sat, 13 Mar 2021 03:50:52 +0200 Subject: [PATCH] remove secret.js from gitignore so i can commit the default secret.js file --- .gitignore | 1 - brainlet/secret.js | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 brainlet/secret.js diff --git a/.gitignore b/.gitignore index 939e6af..6ec2bc4 100755 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,5 @@ node_modules node_modules/ node_modules/* -secret.js bridgebotsecret.js \ No newline at end of file diff --git a/brainlet/secret.js b/brainlet/secret.js new file mode 100755 index 0000000..c6a4e1c --- /dev/null +++ b/brainlet/secret.js @@ -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"); +}