Skip to content

Commit

Permalink
Rename BLUEDRAGON_MONGO_HOSTNAME -> BLUEDRAGON_MONGO_CONNECTION_STRING
Browse files Browse the repository at this point in the history
  • Loading branch information
FluxCapacitor2 committed Mar 10, 2024
1 parent fc0eb57 commit 312091b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/deployment/1_baremetal.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/deployment/2_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
18 changes: 9 additions & 9 deletions src/content/docs/reference/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`<br>**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`<br>**Prod**: `mongo:27017` | The hostname that resolves to a MongoDB instance |
| `BLUEDRAGON_PUFFIN_HOSTNAME` | **Dev**: `localhost`<br>**Prod**: `puffin` | The hostname that resolves to a Puffin instance |
| `BLUEDRAGON_LUCKPERMS_HOSTNAME` | **Dev**: `http://localhost:8080`<br>**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`<br>**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`<br>**Prod**: `mongodb://mongo:27017` | The hostname that resolves to a MongoDB instance |
| `BLUEDRAGON_PUFFIN_HOSTNAME` | **Dev**: `localhost`<br>**Prod**: `puffin` | The hostname that resolves to a Puffin instance |
| `BLUEDRAGON_LUCKPERMS_HOSTNAME` | **Dev**: `http://localhost:8080`<br>**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._

Expand Down

0 comments on commit 312091b

Please sign in to comment.