Skip to content
ManiakMCPE edited this page Oct 4, 2015 · 4 revisions

Proxy side setup

  1. Install node.js http://nodejs.org/ (Ubuntu Install)
  2. Install mysql
  3. Get code from repo
  4. Insert proxy.sql into table
    mysql -u <user> -p < proxy.sql
  5. Install npm packages (run from directory with code) npm install
  6. Setup proxy config
    From cli
    node mcpeproxy.js --mysql:host <host> --mysql:user <user> --mysql:password <password> --mysql:database <database>
    From environment variables
    export mysql__host=<host>
    export mysql__user=<user>
    export mysql__password=<password>
    export mysql__database=<database>
    Optional parameter to make web server listen on certain IP
    From cli
    --loadbalancer:webIP <IP>
    From environment variables
    export loadbalancer__webIP=<IP>

Pocketmine side setup

  1. Install the plugin
  2. Setup plugin config
    Set the variables serverAddress, serverPort, proxyAddress, and tokenSecret from either environment variables or the config.yml
    server* being the pocketmine server, and tokenSecret is pulled from the config.json on the proxy

Clone this wiki locally