Skip to content
Alternative IPFS uploader for DTube videos.
JavaScript HTML CSS Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client
db
docs
handbrake
lib
public
scripts
test
.DS_Store
.auth.json
.gitignore
.snyk
.travis.yml
LICENSE
README.md
authManager.js
config.json
dbManager.js
index.js
ipfsUploadHandler.js
package-lock.json
package.json
shawp.js
wcHelper.js
whitelist.txt

README.md

Build Status OneLoveDTube channel on Discord PRs Welcome

IPFS Video Uploader

This is an alternative IPFS uploader to upload videos onto DTube. Includes a basic web UI.

Dependencies required

  • npm command line tools
  • ffmpeg, imagemagick and bc for sprite generation
  • go-ipfs with a running daemon
  • tusd running daemon, which can be installed and configured here.

Additional requirements

  • A HiveSigner application (if HiveSigner authentication is used)
  • A domain name for HTTPS, plus SSL certificate for that domain installed
  • A running siad node for Skynet upload support.

Installation

  1. Clone this repository by typing git clone https://github.com/oneloveipfs/ipfsVideoUploader.git in a terminal window.

  2. Install all required node modules. cd ipfsVideoUploader && npm install

  3. Configure uploader by modifying config.json file. If you need help with the configuration, view the documentation here

  4. Run npm run keygen to generate encryption and auth keys for Hive Keychain support. Then backup the contents of .auth.json file in a safe place.

  5. If whitelistEnabled is set to true, add some Hive accounts to the whitelist by modifying whitelist.txt. (one line per Hive user)

  6. Run the app by typing npm start. Your app will listen to ports you specify in config.json file.

All uploaded files (through non-resumable upload APIs) will be saved in the uploaded folder within the repo. Image files (for Hive and Steem article body) will be saved in the imguploads folder. As for resumable uploads, you may define the directory in config.json file as well as the tusd daemon startup arguments.

Supported file formats

IPFS works the best for videos with .mp4, therefore only mp4 files will be supported at this moment. Both .jpg and .png file formats are supported for thumbnail uploads.

RESTful HTTP API & IPSync

API calls for authentication, file uploads, hashes and usage data are documented here. Resumable video upload API documentation may be found here.

How to contribute?

If you found any ways to improve on the code, or found any bugs, feel free to create a pull request on the GitHub repository. You can also contact me on Discord techcoderx#7481 if you have any enquiries.

You can’t perform that action at this time.