Hi, I’m hosting some files in a Raspberry Pi 3 and trying out IPFS.
I’ve setup a Cloudflare IPFS gateway for a subdomain and run the deamon in the RPi.
CNAME ipfs.grondtrack.space ipfs.cloudflare.com
TXT _dnslink.ipfs.groundtrack.space "dnslink=/ipns/k51qzi5uqu5dlkcvrhwnye8x0cgv3m6g8nb7lh8etwnmkf9mdrfw7zk78h2yh0"
I created a key (named www) to use for IPNS. Everytime I want to publish a new version, I do,
pi@raspberrypi:~ $ ipfs name publish --key=www $(ipfs add -Qr www)
(www is also a folder that contains the files)
However, discovery and content fetch is super slow, until it gets cached in Cloudflare.
ipfs.io gateway generally timeout! (using both /ipfs/<root-cid>
and /ipns/<www-peer-id-or-domain>
)
My guess is, following the installation, I run init using the lowpower
profile (and that’s what I’d prefer). I read some documentation on this profile, and it sets DHT as client only (my CIDs are not announced to the DHT?), and Reprovider 0.
I wonder how Cloudflare (sometimes) is able to fetch my content even if IPFS deamon is set to dhtclient
. How could I improve discovery and content initial fetchs for this scenario?
Tried updating my Reprovider
config and restarted the daemon, but ipfs.io and Cloudflare keeps giving timeout, and sometimes finds it but takes like 15s and several page refreshes. Then it gets cached and there’s no problem for a while (until cache gets invalidated).