-
Notifications
You must be signed in to change notification settings - Fork 6
Loadbalancing
ManiakMCPE edited this page Oct 4, 2015
·
4 revisions
- Install node.js http://nodejs.org/ (Ubuntu Install)
- Install mysql
- Get code from repo
- Insert proxy.sql into table
mysql -u <user> -p < proxy.sql - Install npm packages (run from directory with code)
npm install - 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>
- Install the plugin
- Setup plugin config
Set the variablesserverAddress,serverPort,proxyAddress, andtokenSecretfrom either environment variables or the config.yml
server*being the pocketmine server, andtokenSecretis pulled from the config.json on the proxy