Added check to getKey, checks if key was added through env variable, if it is, it skips prompting for the password. This should make it so creating docker images is easier
This commit is contained in:
+6
-1
@@ -4,7 +4,12 @@ const crypto = require("crypto");
|
||||
|
||||
const getKey = async() => {
|
||||
|
||||
if (process.env.NODE_ENV) {
|
||||
if (process.env.KEY) {
|
||||
// For Docker
|
||||
|
||||
env.key = process.env.KEY
|
||||
|
||||
} else if (process.env.NODE_ENV) {
|
||||
|
||||
let password = await prompt("Enter Server Encryption Password: ", {method: "hide"});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user