Skip to content

How to Proxy Multiple Accounts

Encho edited this page Feb 8, 2023 · 6 revisions

This is not a guide on sharing accounts. For that, read: How to Share Accounts With A Reverse Proxy

If you're proxying multiple accounts you probably want all your proxies to share the same logging, whitelist, and webhook settings.

This is where a master configuration file comes in handy. Just enable it in each proxy (set config.coordination.active to true), create a json file named master-config.json, and place it in config.coordination.path (default location is "./../").

I recommend a folder structure like this:

│   master-config.json
├───proxy1
├───proxy2
├───proxy3
├───proxy4

The master configuration file allows you to set configuration variables that can be shared across multiple proxies. This is useful for having proxies share the same webhooks, Mineflayer configs, logging practices, whitelists, et cetera—making it easier to add new proxies to an existing network.

Here is an example of what a master-config.json and config.json pair could look like:

master-config.json proxy1/config.json
 {
"proxy": {
"whitelist": [ "YOUR WHITELISTED PLAYERNAMES" ]
},

"discord": {
"active": true,
"webhook": {
"spam": "YOUR DISCORD WEBHOOK",
"livechat": "YOUR DISCORD WEBHOOK",
"status": "YOUR DISCORD WEBHOOK"
}
},


"ngrok": {
"active": true,
"region": "us"
}
}
 {
"account": {
"username": "YOUR USERNAME",
},

"proxy": {
"port": 25565
},

"discord": {
"color": 2123412,
"id": "424701879151230977"
},


"ngrok": {
"authtoken": "YOUR AUTHTOKEN HERE"
},

"coordination": {
"active": true,
"path": "./../"
}
}

Note: Be sure that all the proxies also share the same config.coordination.path even if you don't provide a master config file, as it's the path they'll use to share a flag indicating who should be using the livechat webhook to avoid spamming it if multiple accounts are online at the same time.