hyphacoop/api.distributed.press

Don't run public gateway

Closed this issue · 3 comments

Set Gateway.NoFetch to true.

When set to true, the gateway will only serve content already in the local repo and will not fetch files from the network.

This prevents the IPFS gateway from being abused as a public general gateway.

fauno commented

We're thinking of doing this in Sutty too, but it seems you need to add all domain names to a JSON array and reload the config? I haven't checked if it can be done through IPFS API

My understanding is that you don't need to set any domain names for this to work, it's an entirely separate config setting. You just need to set Gateway.NoFetch and it'll work.

Closing (applies to v0)