| Crates.io | iroh-gateway |
| lib.rs | iroh-gateway |
| version | 0.2.0 |
| created_at | 2022-11-28 19:02:40.371387+00 |
| updated_at | 2022-12-21 17:05:57.168686+00 |
| description | IPFS gateway |
| homepage | |
| repository | https://github.com/n0-computer/iroh |
| max_upload_size | |
| id | 724700 |
| size | 361,371 |
A Rust implementation of an IPFS gateway based on iroh. An IPFS gateway allows you to access content on the IPFS network over HTTP.
cargo run -- -p 10000
cargo run -- -h for details-wcf Writeable, Cache, Fetch (options to toggle write enable, caching mechanics and fetching from the network); currently exists but is not implemented-p Port the gateway should listen onIROH_INSTANCE_ID - unique instance identifier, preferably some name than hard id (default: generated lower & snake case name)IROH_ENV - indicates the service environment (default: dev)| Endpoint | Flag | Description | Default |
|---|---|---|---|
/ipfs/:cid & /ipfs/:cid/:path |
?format={"", "fs", "raw", "car"} |
Specifies the serving format & content-type | ""/fs |
?filename=DESIRED_FILE_NAME |
Specifies a filename for the attachment | {cid}.bin |
|
?download={true, false} |
Sets content-disposition to attachment, browser prompts to save file instead of loading | false |
|
?force_dir={true, false} |
Lists unixFS directories even if they contain an index.html file |
false |
|
?uri=ENCODED_URL |
Query parameter to handle navigator.registerProtocolHandler Web API ie. ipfs:// | "" |