From 043a43ad3f357f2d775d6bd0162ac86d9994e364 Mon Sep 17 00:00:00 2001 From: Ryota Kota Date: Wed, 31 Jul 2024 03:27:54 +0900 Subject: [PATCH] add ENABLE_COMMUNITY_SERVER to configure for community server --- README.md | 9 +++++---- scripts/entrypoint.sh | 4 ++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 77ddb27..1e73c37 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,11 @@ You can change the settings by use the following environment variables: ### General -| Variable | Type | Default | Description | -|:-------------------|:----:|:--------|:----------------------------------| -| UPDATE_ON_START | bool | `false` | Update a server on startup | -| ENABLE_MULTITHREAD | bool | `true` | Use multi threads to run a server | +| Variable | Type | Default | Description | +|:------------------------|:----:|:--------|:-------------------------------------| +| UPDATE_ON_START | bool | `false` | Update a server on startup | +| ENABLE_MULTITHREAD | bool | `true` | Use multi threads to run a server | +| ENABLE_COMMUNITY_SERVER | bool | `false` | Setup as a community server (public)
You may also want to set `PUBLIC_IP` if you host it in LAN. | ### PalWorldSettings.ini diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 8eb91d4..6cf5ac4 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -8,6 +8,7 @@ SERVER_OPTS="$SERVER_OPTS" UPDATE_ON_START="${UPDATE_ON_START:-false}" ENABLE_MULTITHREAD="${ENABLE_MULTITHREAD:-true}" ENABLE_ENGINE_OPTIMIZATION="${ENABLE_ENGINE_OPTIMIZATION:-false}" +ENABLE_COMMUNITY_SERVER="${ENABLE_COMMUNITY_SERVER:-false}" steamdo() { cmd="$@" @@ -90,5 +91,8 @@ SERVER_OPTS=() if [[ "${ENABLE_MULTITHREAD,,}" = "true" ]]; then SERVER_OPTS+=("-useperfthreads" "-NoAsyncLoadingThread" "-UseMultithreadForDS") fi +if [[ "${ENABLE_COMMUNITY_SERVER,,}" = "true" ]]; then + SERVER_OPTS+=("-publiclobby") +fi log "CMD: $INSTALL_DIR/PalServer.sh ${SERVER_OPTS[@]}" steamdo $INSTALL_DIR/PalServer.sh ${SERVER_OPTS[@]}