mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-07 02:27:16 +02:00
enhancing error message with an actual instruction on how to fix the missing ssl problem when running in prod mode and secured enabled
This commit is contained in:
@@ -80,6 +80,8 @@ var validateSecureMode = function(config) {
|
||||
|
||||
if (!privateKey || !certificate) {
|
||||
chalk.red(console.log('+ Error: Certificate file or key file is missing, falling back to non-SSL mode'));
|
||||
chalk.red(console.log(' To create them, simply run the following from your shell: sh ./scripts/generate-ssl-certs.sh'));
|
||||
console.log();
|
||||
config.secure = false;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user