A program to connect sspanel-uim with trojan-cluster
You need a machine that runs trojan-cluster or redis mode of trojan-go.
This program make use of sspanel-uim's webapi mode.
- Clone this repository to your machine that runs
trojan-cluster
.git clone https://github.com/trojan-cluster/yahagi.js/
- Run
npm install yahagi.js
- Fill the entry in
index.js
or see Environment. - Make something to run it as a daemon, you can create a systemd service or use pm2. If you don't like these complex things, nohup or screen will work, too.
Now it will work.
Yahagi.js can make use of environment variable to configure it self:
YAHAGI_DOMAIN: API domain
YAHAGI_NODE_ID: Node ID
YAHAGI_NODE_KEY: Node Key