Vladimir Alabov commited on
Commit
e2ff3d7
1 Parent(s): 5603394
Files changed (1) hide show
  1. server.js +3 -1
server.js CHANGED
@@ -6,7 +6,9 @@ const port = 7860;
6
  const baseUrl = 'bing';
7
 
8
  app.use('/', proxy(targetUrl, {
9
- proxyReqOptDecorator: (proxyReqOpts, srcReq) => {
 
 
10
  // Modify the request headers if necessary
11
  // proxyReqOpts.headers['Authorization'] = 'Bearer '+openaiKey;
12
  return proxyReqOpts;
 
6
  const baseUrl = 'bing';
7
 
8
  app.use('/', proxy(targetUrl, {
9
+ https: true,
10
+ proxyReqOptDecorator: (proxyReqOpts, srcReq) => {
11
+ console.log(srcReq);
12
  // Modify the request headers if necessary
13
  // proxyReqOpts.headers['Authorization'] = 'Bearer '+openaiKey;
14
  return proxyReqOpts;