remove secret.js from gitignore so i can commit the default secret.js file

This commit is contained in:
hippoz 2021-03-13 03:50:52 +02:00
parent a47d938b7e
commit 3c856e5fe5
Signed by: hippoz
GPG key ID: 7C52899193467641
2 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View file

@ -2,6 +2,5 @@ node_modules
node_modules/ node_modules/
node_modules/* node_modules/*
secret.js
bridgebotsecret.js bridgebotsecret.js

10
brainlet/secret.js Executable file
View 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");
}