Futureporn API
Futureporn Application Programmable Interface (API) for developers and power users
Data API
The Data API contains all the data served by this website in JSON format, including IPFS Content IDs (CID), VOD titles, dates, and stream announcement links.
IPFS Cluster Template
The IPFS Cluster Template allows other IPFS cluster instances to join the Futureporn.net IPFS cluster as a follower peer . Cluster peers automatically pin (replicate) the IPFS content listed on this website.
Basic instructions are as follows
1. Download & install both kubo and ipfs-cluster-follow onto your server.
2. Initialize your ipfs repo & start the ipfs daemon
3. Join the cluster using ipfs-cluster-follow
Below is an example bash script to get everything you need to run an IPFS follower peer. This is only an example and may need tweaks to run in your environment.
#!/bin/bash## bootstrap.sh## tested on Ubuntu 22.04## install dependenciescdapt install -y screen## Open necessary firewall portsufw allow 9096/tcpufw allow 9094/tcpufw allow 4001/tcpufw allow 4001/udp## Download kubowget 'https://dist.ipfs.tech/kubo/v0.24.0/kubo_v0.24.0_linux-amd64.tar.gz'tar xvzf ./kubo_v0.24.0_linux-amd64.tar.gzchmod +x ./kubo/install.sh./kubo/install.sh## Download ipfs-cluster-followwget 'https://dist.ipfs.tech/ipfs-cluster-follow/v1.0.7/ipfs-cluster-follow_v1.0.7_linux-amd64.tar.gz'tar xvzf ./ipfs-cluster-follow_v1.0.7_linux-amd64.tar.gzchmod +x ./ipfs-cluster-follow/ipfs-cluster-followmv ./ipfs-cluster-follow/ipfs-cluster-follow /usr/local/bin/## initialize ipfsipfs init## run ipfs in a screen sessionscreen -d -m ipfs daemon## run ipfs-cluster-followCLUSTER_PEERNAME="my-cluster-peer-name" ipfs-cluster-follow futureporn.net run --init https://futureporn.net/api/service.json