Skip to content

Commit

Permalink
#85: update CA location, make more dynamic and also add fallback syst…
Browse files Browse the repository at this point in the history
…em CA usage
  • Loading branch information
pirog committed Oct 16, 2024
1 parent c21007e commit 50b0fa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builders/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 50b0fa7

Please sign in to comment.