Concurrent Function Upgrade for Enhanced Performance (#4918)
Summary: Republishing sanjaiyan-dev's PR https://github.com/facebook/flipper/pull/4889 running `git rebase` because of a conflict. Pull Request resolved: https://github.com/facebook/flipper/pull/4918 Reviewed By: lblasa Differential Revision: D47294545 Pulled By: passy fbshipit-source-id: 74904ec6179ed5a3bab6f9b701c3cd769ecad3bf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c8776175c3
commit
7cef8286f9
@@ -82,10 +82,15 @@ export const loadSecureServerConfig = async (): Promise<SecureServerConfig> => {
|
||||
await ensureOpenSSLIsAvailable();
|
||||
await certificateSetup();
|
||||
await generateAuthToken();
|
||||
const [key, cert, ca] = await Promise.all([
|
||||
fs.readFile(serverKey),
|
||||
fs.readFile(serverCert),
|
||||
fs.readFile(caCert),
|
||||
]);
|
||||
serverConfig = {
|
||||
key: await fs.readFile(serverKey),
|
||||
cert: await fs.readFile(serverCert),
|
||||
ca: await fs.readFile(caCert),
|
||||
key,
|
||||
cert,
|
||||
ca,
|
||||
requestCert: true,
|
||||
rejectUnauthorized: true, // can be false if necessary as we don't strictly need to verify the client
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user