Spaces:
Paused
Paused
Vladimir Alabov
commited on
Commit
·
e2ff3d7
1
Parent(s):
5603394
updated 4
Browse files
server.js
CHANGED
|
@@ -6,7 +6,9 @@ const port = 7860;
|
|
| 6 |
const baseUrl = 'bing';
|
| 7 |
|
| 8 |
app.use('/', proxy(targetUrl, {
|
| 9 |
-
|
|
|
|
|
|
|
| 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;
|