Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

feat: act as HTTP PROXY for http://<cidv1b32>.ipfs.localhost #2246

Closed
wants to merge 1 commit into from

Commits on Jul 12, 2019

  1. feat: act as HTTP PROXY for http://<cidv1b32>.ipfs.localhost

    PoC right now, but you get the idea.
    
    ```
    ⨎ curl -v --proxy 'http://127.0.0.1:8180' 'http://bafybeih4mncb4apdnrvbnqkicldf74sfstykoryzi7noaf4njxkiuflnay.ipfs.localhost/658.png' > 658.png
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 127.0.0.1...
    * TCP_NODELAY set
    * Connected to 127.0.0.1 (127.0.0.1) port 8180 (#0)
    > GET http://bafybeih4mncb4apdnrvbnqkicldf74sfstykoryzi7noaf4njxkiuflnay.ipfs.localhost/658.png HTTP/1.1
    > Host: bafybeih4mncb4apdnrvbnqkicldf74sfstykoryzi7noaf4njxkiuflnay.ipfs.localhost
    > User-Agent: curl/7.54.0
    > Accept: */*
    > Proxy-Connection: Keep-Alive
    >
    < HTTP/1.1 200 OK
    < content-type: application/octet-stream
    < cache-control: no-cache
    < Date: Fri, 12 Jul 2019 14:20:44 GMT
    < Connection: keep-alive
    < Transfer-Encoding: chunked
    <
    { [16211 bytes data]
    100  853k    0  853k    0     0  30.0M      0 --:--:-- --:--:-- --:--:-- 30.8M
    * Connection #0 to host 127.0.0.1 left intact
    ```
    
    refs ipfs/kubo#5982
    
    License: MIT
    Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
    Alan Shaw committed Jul 12, 2019
    Configuration menu
    Copy the full SHA
    573fa4b View commit details
    Browse the repository at this point in the history