A Discourse forum plugin to use IPFS to store files, using the Fission web API.
This add a file store component that stores files on IPFS, initially using Fission's Web API (other IPFS services welcome!).
When you use this plugin with Discourse, you enter your API keys and an optional IPFS gateway URI. Files that are uploaded through Discourse will be stored and pinned on IPFS, and served up over http using the gateway.
TO DO:
- Add support for get-ipfs to load IPFS files natively
Follow instructions here to install Discourse plugins -- so you'll need to add this line to your containers/app.yml
:
- git clone https://github.com/fission-suite/discourse-ipfs-file-store.git
And then rebuild the container.
Now you can enable and configure the plugin:
- Make sure you've signed up for a Fission account, read the guide to register using the CLI interface
- Visit
$your_site/admin/site_settings/category/plugins?filter=ipfs_storage
- Select Enable IPFS storage
- Enter your Fission username and password
- Optionally enter an IPFS gateway
- Uploads to IPFS will go through the Fission API at runfission.com
- If you enter an IPFS gateway (step 4 in Configuration), downloads will be pulled from that IPFS gateway. For best results, use the Fission gateway:
ipfs.runfission.com
Further discussion in the forum, or file an issue if you run into problems.