# Server configuration
-Some information about all the possible configurations. Click [here](https://github.com/Impostor/Impostor/blob/master/src/Impostor.Server/config-full.json) to see all the possible config options.
+Some information about all the possible configurations. Click [here](https://github.com/Impostor/Impostor/blob/master/src/Impostor.Server/full-config-example.json) to see all the possible config options.
## Options
| **EnableOwnershipChecks** | `true` | Enables checks that check if players are allowed to perform a certain action on themself or another player. |
| **EnableRoleChecks** | `true` | Enables checks that check if players have the correct role when performing certain role abilities like venting or murdering. |
| **EnableTargetChecks** | `true` | Enables checks that check if certain packets to everyone that should only have been sent to certain players or vice versa. This includes sending votes or network objects. |
-
| **ForbidProtocolExtensions** | `true` | If disabled allows players to send network packets that go beyond the network packets sent by the vanilla game. This is necessary for most mods that need all players to install it. |
### Compatibility
### File
-The simplest option to configure is by using the `config.json` file next to the server executable. For all possible options see the [config-full.json](https://github.com/Impostor/Impostor/blob/dev/src/Impostor.Server/config-full.json) file.
+The simplest option to configure is by using the `config.json` file next to the server executable. For all possible options see the [full-config-example.json](https://github.com/Impostor/Impostor/blob/master/src/Impostor.Server/full-config-example.json) file.
### Environment variables
+++ /dev/null
-{
- "Server": {
- "PublicIp": "127.0.0.1",
- "PublicPort": 22023,
- "ListenIp": "0.0.0.0",
- "ListenPort": 22023
- },
- "HttpServer": {
- "Enabled": true,
- "ListenIp": "0.0.0.0",
- "ListenPort": 22023
- },
- "AntiCheat": {
- "Enabled": true,
- "BanIpFromGame": true
- },
- "Timeout": {
- "SpawnTimeout": 2500,
- "ConnectionTimeout": 2500
- },
- "Compatibility": {
- "AllowFutureGameVersions": false,
- "AllowVersionMixing": false
- },
- "Debug": {
- "GameRecorderEnabled": true,
- "GameRecorderPath": ""
- }
-}
--- /dev/null
+{
+ "Server": {
+ "PublicIp": "127.0.0.1",
+ "PublicPort": 22023,
+ "ListenIp": "0.0.0.0",
+ "ListenPort": 22023
+ },
+ "HttpServer": {
+ "Enabled": true,
+ "ListenIp": "0.0.0.0",
+ "ListenPort": 22023
+ },
+ "AntiCheat": {
+ "Enabled": true,
+ "BanIpFromGame": true,
+ "AllowCheatingHosts": "Never",
+ "EnableGameFlowChecks": true,
+ "EnableMustBeHostChecks": true,
+ "EnableColorLimitChecks": true,
+ "EnableNameLimitChecks": true,
+ "EnableOwnershipChecks": true,
+ "EnableRoleChecks": true,
+ "EnableTargetChecks": true,
+ "ForbidProtocolExtensions": true
+ },
+ "Timeout": {
+ "SpawnTimeout": 2500,
+ "ConnectionTimeout": 2500
+ },
+ "Compatibility": {
+ "AllowFutureGameVersions": false,
+ "AllowVersionMixing": false
+ },
+ "Debug": {
+ "GameRecorderEnabled": true,
+ "GameRecorderPath": ""
+ }
+}