# Configuration

## PluginQuery Configuration

### ip-whitelist

Allows you to whitelist connection to prevent unwanted situation. Leave it empty to disable whitelist. (Default: **Empty list**). *\*only for spigot server*

### lock

Disable key synchronization. (Default: **false**). *\*only for spigot server*

### connection-throttle

Delay before a connection tried to reconnect to the server again. (Default: **1.5 seconds**). *\*only for spigot server*

### reconnect-delay

Delay before reconnecting to spigot server. Must be equal or greater than connection throttle. (Default: **1.5 seconds**). *\*only for bungeecord*

### max-reconnect-try

Maximum reconnect try attempt for BungeeCord. (Default: **Unlimited**). *\*only for bungeecord*

## Configure The Plugin Properly

By default, PluginQuery is already full-secured with query encryption. But you can improve it more. Here is configuration guide on how to secure your server while using this plugin.

* First setup\
  If this is your first time using this plugin on your server, then don't touch the configuration first. Join your server and synchronize all of your server secret keys using command `/pq sync`. Or manually copy and paste `secret.key`from PluginQuery's data folder in bungeecord to PluginQuery's data folder in spigot server.
* Block unwanted connections\
  Add your bungeecord IP to your PluginQuery's config in spigot server. This will blocks other connection from other IP to access and sudo things in your server.
* Lock the key synchronization\
  Don't allow your staff to have access to synchronize the PluginQuery's secret key. Once you synchronized all of your server secret keys, set the `lock` configuration value to `true` in your spigot server and reload the plugin using command `/spq reload`.
* Recommended value for **connection-throttle** and **reconnect-delay**\
  Both of these used to prevent high-traffic connection issue on your server. Recommended value is already set to your config by default. Setting it to higher value may affect to your plugins if your bungeecord got disconnected from your spigot server. Setting it to lower value may cause security problem such as DDoS. Recommended value: **1000ms to 2000ms**.
