-
Notifications
You must be signed in to change notification settings - Fork 10
How to Proxy Multiple Accounts
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 |
---|---|
|
|
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.