Enable system CA certificate trust for corporate networks
Set NODE_USE_SYSTEM_CA=1 when spawning the opencode server process. This allows Bun to use the macOS system keychain for TLS validation, fixing SSL errors for users on corporate VPNs with custom CAs.
This commit is contained in:
committed by
Mateusz Tymek
parent
9e1ee712d2
commit
b5c5237915
@@ -83,7 +83,7 @@ export class ProcessManager {
|
|||||||
],
|
],
|
||||||
{
|
{
|
||||||
cwd: this.projectDirectory,
|
cwd: this.projectDirectory,
|
||||||
env: { ...process.env },
|
env: { ...process.env, NODE_USE_SYSTEM_CA: "1" },
|
||||||
stdio: ["ignore", "pipe", "pipe"],
|
stdio: ["ignore", "pipe", "pipe"],
|
||||||
detached: false,
|
detached: false,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user