Skip to content

Commit

Permalink
Merge pull request #742 from frenchtoasters/trustCertEnv
Browse files Browse the repository at this point in the history
Adding env for parsing for trustServerCertificate connection value
  • Loading branch information
janproch committed May 9, 2024
2 parents fdabe1e + 83f3391 commit 52c7703
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/api/src/controllers/connections.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function getPortalCollections() {
sslCertFilePassword: process.env[`SSL_CERT_FILE_PASSWORD_${id}`],
sslKeyFile: process.env[`SSL_KEY_FILE_${id}`],
sslRejectUnauthorized: process.env[`SSL_REJECT_UNAUTHORIZED_${id}`],
trustServerCertificate: process.env[`SSL_TRUST_CERTIFICATE_${id}`],
}));

logger.info({ connections: connections.map(pickSafeConnectionInfo) }, 'Using connections from ENV variables');
Expand Down

0 comments on commit 52c7703

Please sign in to comment.