IPFS Video Uploader
This is an alternative IPFS uploader to upload videos onto DTube. Includes a basic web UI.
npmcommand line tools
bcfor sprite generation
go-ipfswith a running daemon
- A SteemConnect application
- A domain name for HTTPS, plus SSL certificate for that domain installed (code is written to work well with certbot)
Clone this repository by typing
git clone https://github.com/techcoderx/ipfsVideoUploader.gitin a terminal window.
Intall all required node modules.
cd ipfsVideoUploader && npm install
Configure uploader by modifying
config.jsonfile. If you need help with the configuration, view the documentation here
node getLoginLink.jsto generate SteemConnect login link.
Replace the login link with the one you obtained from step 3 here.
whitelistEnabledis set to
true, add some Steem accounts to the whitelist by modifying whitelist.txt. (one line per Steem user)
Run the app by typing
node index.js. Your app will listen to port 80, and 443 if you have HTTPS enabled.
Note: You may need to enable read permissions for
/etc/letsencrypt/live/yourdomain.com/ directory for the user account if using HTTPS; and port 80 and 443 binding permissions (or use a reverse proxy).
All uploaded files will be saved in the
uploaded folder within the repo.
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.
Right now the uploader will only take source videos, but options for adding a user-encoded 240p, 480p, 720p and 1080p versions of the source video will be added later.
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.