This tutorial explains how one can run a custom Hive Plug & Play node, publicly or locally. I released a stable version of Hive Plug & Play about 2 weeks ago and made a public node available at https://plug-play.imwatsi.com.
I released parts of this tutorial in the wiki: https://github.com/imwatsi/hive-plug-play/wiki/Run-your-own-node
cd hive-plug-playpip3 install .Hive Plug & Play looks for a config.ini file in /etc/hive-plug-play by default. To set a custom folder, use an environment variable: export PLUG_PLAY_HOME=/home/ubuntu/.config/hive-plug-play.
db_username=postgres
db_password=password
server_host=127.0.0.1
server_port=8080
ssl_cert=
ssl_key=
start_block=53877365
op_ids=["community","notify"]
start_block and enter it in the config as an integer. You can leave it blank to start from block 1op_id, enter an array of strings in the config field op_ids representing the ones you want to allowserver_host to 0.0.0.0ssl_cert and ssl_key fields to link to the respective certificate files on the machine, and finally set the server_port to 443You can run Hive Plug & Play using this command:
hive_plug_play
If you are running the node's server on port 80 or 443 you will need to run the command above with sudo privileges.
If you have any questions on running your own Hive Plug & Play node, feel free to leave a comment below.
Hive Plug & Play is a customizable block streaming and parsing microservice for custom_json ops on Hive.
Repo: https://github.com/imwatsi/hive-plug-play
Documentation: https://github.com/imwatsi/hive-plug-play/wiki