We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7ed796 commit 289d4bdCopy full SHA for 289d4bd
src/api.ts
@@ -113,9 +113,14 @@ export async function createHttpAgent(): Promise<ProxyAgent> {
113
config("coder.proxyBypass"),
114
);
115
},
116
- cert: await readFile(certFile),
117
- key: await readFile(keyFile),
118
- ca: await readFile(caFile),
+ ...(() => {
+ const [cert, key, ca] = await Promise.all([
+ readFile(certFile),
119
+ readFile(keyFile),
120
+ readFile(caFile),
121
+ ]);
122
+ return { cert, key, ca };
123
+ })(),
124
servername: checkEmptyString(altHost),
125
// rejectUnauthorized defaults to true, so we need to explicitly set it to
126
// false if we want to allow self-signed certificates.
0 commit comments