- switch all invidual files documenting command line options into .md, as the documentation is now markdown-looking. - made the parser treat 4-space indents as quotes - switch to building the curl.1 manpage using the "mainpage.idx" file, which lists the files to include to generate it, instead of using the previous page-footer/headers. Also, those files are now also .md ones, using the same format. I gave them underscore prefixes to make them sort separately: _NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md, _VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md, _OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md, _EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md - updated test cases accordingly Closes #12751
40 lines
1.4 KiB
Markdown
40 lines
1.4 KiB
Markdown
---
|
|
c: Copyright (C) Mark Gaiser, <markg85@gmail.com>
|
|
SPDX-License-Identifier: curl
|
|
Long: ipfs-gateway
|
|
Arg: <URL>
|
|
Help: Gateway for IPFS
|
|
Protocols: IPFS
|
|
Added: 8.4.0
|
|
Category: ipfs
|
|
Multi: single
|
|
See-also:
|
|
- help
|
|
- manual
|
|
Example:
|
|
- --ipfs-gateway $URL ipfs://
|
|
---
|
|
|
|
# `--ipfs-gateway`
|
|
|
|
Specify which gateway to use for IPFS and IPNS URLs. Not specifying this will
|
|
instead make curl check if the IPFS_GATEWAY environment variable is set, or if
|
|
a `~/.ipfs/gateway` file holding the gateway URL exists.
|
|
|
|
If you run a local IPFS node, this gateway is by default available under
|
|
`http://localhost:8080`. A full example URL would look like:
|
|
|
|
curl --ipfs-gateway http://localhost:8080 ipfs://bafybeigagd5nmnn2iys2f3doro7ydrevyr2mzarwidgadawmamiteydbzi
|
|
|
|
There are many public IPFS gateways. See for example:
|
|
https://ipfs.github.io/public-gateway-checker/
|
|
|
|
WARNING: If you opt to go for a remote gateway you should be aware that you
|
|
completely trust the gateway. This is fine in local gateways as you host it
|
|
yourself. With remote gateways there could potentially be a malicious actor
|
|
returning you data that does not match the request you made, inspect or even
|
|
interfere with the request. You will not notice this when using curl. A
|
|
mitigation could be to go for a "trustless" gateway. This means you locally
|
|
verify that the data. Consult the docs page on trusted vs trustless:
|
|
https://docs.ipfs.tech/reference/http/gateway/#trusted-vs-trustless
|