-
Notifications
You must be signed in to change notification settings - Fork 2
How to set up a remote store
fengzie edited this page Jun 27, 2024
·
2 revisions
- 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
- Create your store data folder, if not provided it would use ~/.mobazha by default
mkdir -p /data/mobazha
- Start the node with the created data folder provided for initialization
./mobazhad_linux_x64 start -d /data/mobazha
- 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
- 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
- Set your credential. You can use the online SHA256 tool https://emn178.github.io/online-tools/sha256.html .
apiusername=alice
apipassword=62a39df87b501ad40b6fc145820756ccedcab952c64626968e83ccbae5beae63
- Re-run the node with the update configuration file in background
nohup ./mobazhad_linux_x64 start -d /data/mobazha &
- 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
- In your desktop app, create a new connection with the VPS information and your configured credential, and connect.
Show about how to setup a remote store. https://youtu.be/i84R35SCkUA