Do public gateways help resolve Kubo resolve content?

Does adding entries to the Gateway.PublicGateways config help IPFS resolve content when doing ipfs cat <hash>?

We have the following entry in our PublicGateways config

      "ipfs.io": {
        "PathPrefixes": [
          "/ipfs"
        ],
        "UseSubdomains": false
      },

We verified that content existed at https://ipfs.io/ipfs/ but then when we tried to do ipfs cat <hash> from our node, it didn’t resolve.

No. Gateway.PublicGateways will have no impact on ipfs cat. Unrelated features.

Gateway.PublicGateways is used when you want to run your own Public Gateway. You define which domains you own there.

See these recipes for real world settings you would use if you want to run path or subdomain gateway yourself.

1 Like