0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

fix: don't exit if using https and pfx is enabled (#1061) (#1062)

* Don't exit if using https and pfx is enabled

* Fix indentation
This commit is contained in:
Yuval Yogev 2018-10-07 21:35:31 +03:00 committed by Juan Picado @jotadeveloper
parent 0af9ecbfa1
commit 315a3b2699

View file

@ -81,7 +81,7 @@ function startVerdaccio(config: any,
let webServer;
if (addr.proto === 'https') {
// https must either have key cert and ca or a pfx and (optionally) a passphrase
if (!config.https || !config.https.key || !config.https.cert || !config.https.ca) {
if (!config.https || !((config.https.key && config.https.cert && config.https.ca) || config.https.pfx)) {
displayHTTPSWarning(configPath);
}