From 50b0fa7aa33bfe0df8eb1f91296a15c2a6492ee8 Mon Sep 17 00:00:00 2001 From: Mike Pirog Date: Wed, 16 Oct 2024 10:22:47 -0400 Subject: [PATCH] #85: update CA location, make more dynamic and also add fallback system CA usage --- builders/node.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builders/node.js b/builders/node.js index 0500a3f..f1a0d63 100644 --- a/builders/node.js +++ b/builders/node.js @@ -194,12 +194,14 @@ module.exports = { // Make sure our command is an array if (!_.isArray(options.command)) options.command = [options.command]; options.command = options.command.join(' && '); + // Build the nodez const node = { image: `node:${options.version}`, environment: { PATH: options.path.join(':'), - NODE_EXTRA_CA_CERTS: `/lando/certs/${options._app._config.domain}.pem`, + NODE_EXTRA_CA_CERTS: _.get(options, '_app._config.appEnv.LANDO_CA_CERT', '/lando/certs/LandoCA.crt'), + NODE_OPTIONS: '--use-openssl-ca', NPM_CONFIG_PREFIX: '/var/www/.npm-global', LANDO_WEBROOT_USER: 'node', LANDO_WEBROOT_GROUP: 'node',