From 915efd06d3a4c32239cf7d9e12fa53b65dd6d3c5 Mon Sep 17 00:00:00 2001 From: "Matthew C. Jones, CPA, CISA, OSCP, CCFE" Date: Sun, 17 Nov 2019 10:12:55 -0500 Subject: [PATCH] Add server port config environment variable (#17) --- README.md | 1 + property-definitions.json | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 2f0315b..10afdb1 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ For Minecraft Java Edition you'll need to use this image instead: The following environment variables will set the equivalent property in `server.properties`, where each [is described here](https://minecraft.gamepedia.com/Server.properties#Bedrock_Edition_3). - `SERVER_NAME` +- `SERVER_PORT` - `GAMEMODE` - `DIFFICULTY` - `LEVEL_TYPE` diff --git a/property-definitions.json b/property-definitions.json index 58f8239..144294c 100644 --- a/property-definitions.json +++ b/property-definitions.json @@ -2,6 +2,9 @@ "server-name": { "env": "SERVER_NAME" }, + "server-port": { + "env": "SERVER_PORT" + }, "gamemode": { "env": "GAMEMODE", "allowed": ["survival","creative","adventure"],