Node server installation

  • Upload node-server.zip to https://botserver.trenalyze.com, then extract.

  • Rename ".env.node.example" to ".env" and set your AWG device sender token in the AWG_TOKEN env value. Also, set SERVER_DOMAIN to be your admin panel domain (https://supportpanel.trenalyze.com). Please, do not add trailing slash.

  • Set BOT_PROVIDER to be 'awg' or 'zender' (It's case sensitive)

  • Set your SERVER_SECRET to be any random string and also your NODE_PORT, the default is port 8000

  • Cpanel -> Domains, write down the Document Root column for botserver.trenalyze.com

  • cPanel -> Setup Node.js App -> Create new

  • Node.js version: 18.xx

  • Application mode: Production

  • Application root: get from step#3 above

  • Application URL: botserver.trenalyze.com

  • Application Startup file: server.js

  • CREATE

  • Open the browser, go to https://botserver.trenalyze.com/info

Last updated