Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
feat: new (overridable) config flag to allow unknown CAs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shesekino committed Apr 16, 2019
1 parent 56b81e2 commit 117b27d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function initConfig(startingConfig) {
config['snapshotIntervalMs'] = 60 * 60 * 1000;
config['beaconUrl'] = 'https://homebase.snyk.io/api/v1/beacon';
config['snapshotUrl'] = `https://homebase.snyk.io/api/v2/snapshot/${startingConfig.projectId}/node`;
config['allowUnknownCA'] = false;

config['functionPaths'] = {
repo: {
Expand All @@ -37,6 +38,7 @@ function initConfig(startingConfig) {
const overrideables = [
'snapshotUrl', 'snapshotIntervalMs', 'beaconIntervalMs',
'enable', 'flushOnExit', 'projectId', 'functionPaths',
'allowUnknownCA',
];
for (const key of overrideables) {
if (key in startingConfig) {
Expand Down

0 comments on commit 117b27d

Please sign in to comment.