>>4624
>>4749
hydrus already has the ability to use its own file-repo and knows how to create IPFS directories as well as download files via IPFS. I don't know what kind of transactions have to take place between the server and client for the file repo but if it's not too dynamic you may be able to do something like this.
Client:
In the remote services->file-repo instead of pointing to a domain, point to an IPNS(not IPFS) hash i.e. "/ipns/*hash*"
Maybe have a checkbox for "IPFS hosted" so you don't have to do special parsing to guess if it's a domain or a multihash, alternatively separate this into its own service.
Server:
Set up a typical hydrus file-repo, doing whatever is normally done
Depending on how file-repos work, do one of the following, if clients sync everything at once, just create an IPFS directory that contains all the files in the repo as well as any hydrus specific metadata for the client.
If file-repos let you download individual files on demand just replace the target address and download method with an IPFS hash.
Regardless of which one of those you use, create an IPFS hash containing the data the client needs, then publish this hash via IPNS
The client can poll this periodically in the same way they do now, pulling down the metadata allowing them to either retrieve all the files or receive the hashes to retrieve them individually depending on how things currently work.