Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/red5d/ipfspodcasting-node
Update script and docker-compose to run a node for IPFSPodcasting.net
https://github.com/red5d/ipfspodcasting-node
Last synced: about 2 months ago
JSON representation
Update script and docker-compose to run a node for IPFSPodcasting.net
- Host: GitHub
- URL: https://github.com/red5d/ipfspodcasting-node
- Owner: Red5d
- License: gpl-3.0
- Created: 2023-08-20T00:55:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-02T02:36:19.000Z (over 1 year ago)
- Last Synced: 2023-09-03T03:57:48.243Z (over 1 year ago)
- Language: Python
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IPFSPodcasting Node
Update script and docker-compose to run a node for IPFSPodcasting.netAdapted from https://github.com/Cameron-IPFSPodcasting/podcastnode-Python
Changes from original:
* Doesn't need to be run on the same host as the IPFS service as long as it can reach the RPC API.
* All communication is over the RPC API. No subprocess commands needed.
* Organized interactions with the IPFS node and the IPFSPodcasting.net site into class objects.
* Files are downloaded into memory and sent directly to the IPFS node for adding/pinning.Use the included docker-compose.yml to start up an IPFS node container.
Ensure that port 4001 on the container is accessible from the Internet, and that the admin RPC port 5001 is **_only accessible internally_**.
After running the script and/or setting a cron job, check the Manage page for your node at [https://ipfspodcasting.net/Manage](https://ipfspodcasting.net/Manage/Node)
Usage:
python ipfspodcastnode_update.py [-h] --rpc_url RPC_URL --email EMAIL [--log_file LOG_FILE] [--debug]
options:
-h, --help show this help message and exit
--rpc_url RPC_URL Url for RPC API for your IPFS node. Example: http://localhost:5001
--email EMAIL Your email address
--log_file LOG FILE Log file to write to. Default: ipfspodcastnode.log
--debug Enable debug logging and disable random starting delayExample usage:
python ipfspodcastnode_update.py --rpc_url 'http://192.168.1.100:5001' --email [email protected]
Set up a cron job to run this script automatically. The recommendation from IPFSPodcasting.net is a time period of every 10 minutes:
*/10 * * * * /usr/bin/flock -n /tmp/ipfspodcastnode.lockfile python ipfspodcastnode_update.py --rpc_url 'http://192.168.1.100:5001' --email [email protected]