Skip to content

How to set up a remote store

fengzie edited this page Jun 27, 2024 · 2 revisions

Steps

  1. Download the Mobazha node binary to your remote machine and make it executable.
wget https://github.com/mobazha/mobazha/releases/download/v3.1.11/mobazhad_linux_x64

chmod +x mobazhad_linux_x64
ls -l

-rwxr-xr-x. 1 root root 95727536 Jun 26 20:34 mobazhad_linux_x64
  1. Create your store data folder, if not provided it would use ~/.mobazha by default
mkdir -p /data/mobazha
  1. Start the node with the created data folder provided for initialization
./mobazhad_linux_x64 start -d /data/mobazha
  1. Ctrl+C to support the node, and update your node configuration file in your store data folder
nano /data/mobazha/mobazha.conf
  • Set to your own data folder
datadir=/data/mobazha
image
  • Update gateway to 0.0.0.0
; The gateway address multiplexes both the IPFS gateway API and the mobazha
; API over the same address. The address mush be in valid multiaddr format.
gatewayaddr=/ip4/**0.0.0.0**/tcp/5102
image
apiusername=alice
apipassword=62a39df87b501ad40b6fc145820756ccedcab952c64626968e83ccbae5beae63
image
  1. Re-run the node with the update configuration file in background
nohup ./mobazhad_linux_x64 start -d /data/mobazha &
  1. Open your store port for remote access How to open your port, it depends on your VPS provisioning. For example, it may require to open port in your console pannel of the VPS. For some case, your can directly open it through your firewall utility firewall-cmd.
firewall-cmd --zone=public --add-port=5102/tcp --permanent
firewall-cmd --reload

Once your port is open, you can verify it from remote with telnet command

telnet xx.xx.xx.xx 5102
image
  1. In your desktop app, create a new connection with the VPS information and your configured credential, and connect.
image image

Video

Show about how to setup a remote store. https://youtu.be/i84R35SCkUA

Clone this wiki locally