Proxying requests

Any modifying request needs to be proxied to the correct destination server. This could be signing up, uploading a file, or sending a follow request. This is achieved using an ipfs p2p stream. In particular, because all these requests are http requests, we use the http p2p proxy exposed locally on the ipfs gateway. It means we can send any request to


and it will go through an end to end encrypted stream through the ipfs network to the destination node, which then sends it to the local Peergos server at:


This is illustrated below: Proxying a request through ipfs