I So I have a IPFS daemon running on an ubuntu VPS, and it's reportedly is listening...
API server listening on /ip4/127.0.0.1/tcp/5001
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Daemon is ready
I have also setup an DNS A Record for ipfs.domain.com to point at the servers IP address. I have also added the DNS TXT record for ipfs.domain.com as...
dnslink=/ipns/QmeQe5FTgMs8PNspzTQ3LRz1iMhdq9K34TQnsCP1jqt8wV
So my first question is how do I link ipfs.domain.com to /ip4/127.0.0.1/tcp/8080
My second questions is, what if the server is offline/unreachable for some reason, is there a way of having some kind of fall back to go to some other gateway?
My Third question is how do specify the caching rules, so images can be cached at least 1 week into the future and the site can get a vary: Accept-Encoding header