diff --git a/src/content/docs/deployment/1_baremetal.md b/src/content/docs/deployment/1_baremetal.md index a0b43eb..3ac55cd 100644 --- a/src/content/docs/deployment/1_baremetal.md +++ b/src/content/docs/deployment/1_baremetal.md @@ -168,7 +168,7 @@ Here is an example: ```properties BLUEDRAGON_QUEUE_TYPE=IPC -BLUEDRAGON_MONGO_HOSTNAME=localhost:27017 +BLUEDRAGON_MONGO_CONNECTION_STRING=mongodb://localhost:27017 BLUEDRAGON_PUFFIN_HOSTNAME=localhost BLUEDRAGON_LUCKPERMS_HOSTNAME=http://localhost:8080 BLUEDRAGON_DEFAULT_GAME=lobby # This should correspond a game name found in the `game.properties` file in one of your games. diff --git a/src/content/docs/deployment/2_docker.md b/src/content/docs/deployment/2_docker.md index 4b58969..3ea4902 100644 --- a/src/content/docs/deployment/2_docker.md +++ b/src/content/docs/deployment/2_docker.md @@ -94,7 +94,7 @@ docker build -t bluedragonmc/server:latest . docker run \ -v /data/worlds:/data/worlds \ -e BLUEDRAGON_QUEUE_TYPE=IPC \ - -e BLUEDRAGON_MONGO_HOSTNAME=mongo:27017 \ + -e BLUEDRAGON_MONGO_CONNECTION_STRING=mongodb://mongo:27017 \ -e BLUEDRAGON_PUFFIN_HOSTNAME=puffin \ -e BLUEDRAGON_LUCKPERMS_HOSTNAME=http://luckperms:8080 \ -e BLUEDRAGON_DEFAULT_GAME=lobby \ diff --git a/src/content/docs/reference/environment.md b/src/content/docs/reference/environment.md index 8efbffb..f16983d 100644 --- a/src/content/docs/reference/environment.md +++ b/src/content/docs/reference/environment.md @@ -12,15 +12,15 @@ If the `BLUEDRAGON_ENV_TYPE` is not set, the fallback is to check for a director ## Environment Variable Reference -| Environment variable | Defaults | Description | -| ------------------------------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | -| `BLUEDRAGON_QUEUE_TYPE` | **Dev**: `TEST`
**Prod**: `IPC` | Use "IPC" to connect to Puffin for queueing, or "TEST" for a fully-local/single-instance queue | -| `BLUEDRAGON_MONGO_HOSTNAME` | **Dev**: `localhost:27017`
**Prod**: `mongo:27017` | The hostname that resolves to a MongoDB instance | -| `BLUEDRAGON_PUFFIN_HOSTNAME` | **Dev**: `localhost`
**Prod**: `puffin` | The hostname that resolves to a Puffin instance | -| `BLUEDRAGON_LUCKPERMS_HOSTNAME` | **Dev**: `http://localhost:8080`
**Prod**: `http://luckperms:8080` | The hostname that resolves to a [standalone LuckPerms](https://luckperms.net/) instance | -| `BLUEDRAGON_DEFAULT_GAME` | `lobby` | The game to automatically create on startup. Typically used to immediately initialize a lobby on each game server. | -| `BLUEDRAGON_AGONES_DISABLED` | _Not set_ | If this environment variable is present with any value, Agones integration will be disabled. | -| `PUFFIN_VELOCITY_SECRET` | _Not set_ | The Velocity modern forwarding secret. If not present, Velocity forwarding is disabled. | +| Environment variable | Defaults | Description | +| ------------------------------------ | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | +| `BLUEDRAGON_QUEUE_TYPE` | **Dev**: `TEST`
**Prod**: `IPC` | Use "IPC" to connect to Puffin for queueing, or "TEST" for a fully-local/single-instance queue | +| `BLUEDRAGON_MONGO_CONNECTION_STRING` | **Dev**: `mongodb://localhost:27017`
**Prod**: `mongodb://mongo:27017` | The hostname that resolves to a MongoDB instance | +| `BLUEDRAGON_PUFFIN_HOSTNAME` | **Dev**: `localhost`
**Prod**: `puffin` | The hostname that resolves to a Puffin instance | +| `BLUEDRAGON_LUCKPERMS_HOSTNAME` | **Dev**: `http://localhost:8080`
**Prod**: `http://luckperms:8080` | The hostname that resolves to a [standalone LuckPerms](https://luckperms.net/) instance | +| `BLUEDRAGON_DEFAULT_GAME` | `lobby` | The game to automatically create on startup. Typically used to immediately initialize a lobby on each game server. | +| `BLUEDRAGON_AGONES_DISABLED` | _Not set_ | If this environment variable is present with any value, Agones integration will be disabled. | +| `PUFFIN_VELOCITY_SECRET` | _Not set_ | The Velocity modern forwarding secret. If not present, Velocity forwarding is disabled. | _[View ConfiguredEnvironment source code](https://github.com/BlueDragonMC/Server/blob/b05b09ad229ccf85da20130510c9c1cdf90bbeed/src/main/kotlin/com/bluedragonmc/server/queue/environments.kt#L23) for more details about server environment configuration._