From ed017f4ccc2f828bc2f385670fc4907ff7ee8dfb Mon Sep 17 00:00:00 2001 From: Cristiano Ventura Date: Mon, 21 Oct 2024 12:37:11 -0400 Subject: [PATCH] feat: ssl_verify_upstream_trusted_ca param --- src/proxy.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/proxy.ts b/src/proxy.ts index 1c8d068a..e6de16b8 100644 --- a/src/proxy.ts +++ b/src/proxy.ts @@ -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