The QNAP Tardigrade Gateway is an application for installing the Tardigrade S3-compatible gateway on a QNAP device. The format of the application installed on the QNAP is .qpkg which is built on the QDK.
API Key and Passphrase ... Enter your Tardigrade API information and encryption passphrase that you want to use with the Storj-powered Tardigrade network.
Access Key and Secret ... These items are used by the S3-compatible application you want to interface with the Tardigrade network.
Start / **Stop **Gateway - Manually start and stop the gateway.
Install Entware on QNAP.
Once entware is installed, install git with following commands.
opkg update
opkg install git
Cloning the repository.
$ git clone https://github.com/storj/qnap-gateway-app
$ cd qnap-gateway-qnap
Build the front end (requires node js)
$ npm install
$ npm run build
$ qbuild
The qpkg file is found at qnap-gateway-app/build](storj-node-qnap/build)
-
To create a new Project
qbuild --create-env <project-name>
-
Change version number(QPKG_VER) in qpkg.cfg
docker-path - '/share/CACHEDEV1_DATA/.qpkg/container-station/bin/docker'
Actions to the triggers can be found and added in storj-node-qnap/shared/STORJ.sh. Perform actions accordingly. Give the full path of the executables. Default actions can be found in the package_routines. Actions can be fired from system("/etc/init.d/GATEWAY.sh ") in php script.
Actions that should be executed pre and post the installation of the app is written in package_routines.
App is installed at `/share/CACHEDEV1_DATA/.qpkg/GATEWAY. The folder structure is the same as it is in the shared folder. In case the app is misbehaving or needs to be debugged, it can be found here.
If you can't see or access the dashboard try the command docker container ls -all to check if the storaganode docker container is running.
To know more about running the Docker container of Tardigrade Uplink Gateway please see the Uplink Gateway documentation