alrufaaey-yahoo/replit-xhttp-relay — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small Node.js relay app that I can deploy on Replit. I want it to work like a simple reverse proxy, so when someone sends any request to the Replit URL, it forwards that request to my own VPS or domain and sends the response back.

Keep it lightweight with only built in Node.js features if possible. It should support normal HTTP methods like GET, POST, PUT, and DELETE, and it should stream the request and response instead of loading everything into memory. Please make the target server easy to change in the code, something like a TARGET_DOMAIN value, and use the Replit PORT environment variable with a fallback.

Also clean up sensitive proxy headers before forwarding, like host, x forwarded headers, proxy headers, connection, keep alive, transfer encoding, and platform specific headers. Add the basic Replit files so I can import it, press Run, then deploy. Include a short README explaining how to change the target domain and run it.

Want more depth? Deep Reverse