A
A
Alexey2020-08-04 12:06:56
Node.js
Alexey, 2020-08-04 12:06:56

P2P Proxy on Node.js?

Actually, there was a need to use a proxy. The task is to serve content from an external resource using an internal server. In this case, the traffic must be P2P.

Example:
The user makes a Get request:

localhost:1236/image?url=http://someUrl.com/image.jpeg


In turn, the local server will have to return the content from someUrl.com/image.jpeg.

The most important feature of this is that the local server only redirects to the domain, but does not use its traffic when receiving and returning content.

Question: It is difficult to imagine the entire algorithm, but I understand that it is possible.
Perhaps there is something to read about it?
Are there any examples?
Is this a reverse proxy?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question