Skip to content

Commit

Permalink
feat: ssl_verify_upstream_trusted_ca param
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoventura committed Oct 21, 2024
1 parent cf8d72f commit ed017f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ export const launchProxy = (
proxyArgs.push('--upstream-auth', `${username}:${password}`)
}

if (proxySettings.mode === 'upstream' && proxySettings.certificatePath) {
proxyArgs.push(
'--set',
`ssl_verify_upstream_trusted_ca=${proxySettings.certificatePath}`
)
}

const proxy = spawn(proxyPath, proxyArgs)

// we use a reader to read entire lines from stdout instead of buffered data
Expand Down

0 comments on commit ed017f4

Please sign in to comment.