const express = require('express'); const proxy = require('express-http-proxy'); const app = express(); const targetUrl = 'https://chat.gpt.bz'; // OpenAI API endpoint app.use('/', proxy(targetUrl, { proxyReqOptDecorator: (proxyReqOpts, srcReq) => { return proxyReqOpts; }, })); const port = 7860; app.listen(port, () => { console.log(`Reverse proxy server listening on port ${port}`); });