Added description for server

This commit is contained in:
Carlos M. Martinez
2024-01-25 21:45:05 -05:00
parent 9518170152
commit a3c1dd0069
5 changed files with 9 additions and 1 deletions

View File

@@ -26,7 +26,8 @@ ENV PORT= \
RCON_ENABLED=true \ RCON_ENABLED=true \
RCON_PORT=25575 \ RCON_PORT=25575 \
QUERY_PORT=27015 \ QUERY_PORT=27015 \
TZ=UTC TZ=UTC \
SERVER_DESCRIPTION=
COPY ./scripts/* /home/steam/server/ COPY ./scripts/* /home/steam/server/
RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh /home/steam/server/backup.sh RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh /home/steam/server/backup.sh

View File

@@ -121,6 +121,7 @@ It is highly recommended you set the following environment values before startin
| PUBLIC_IP | You can manually specify the global IP address of the network on which the server running.If not specified, it will be detected automatically. If it does not work well, try manual configuration. | | x.x.x.x | | PUBLIC_IP | You can manually specify the global IP address of the network on which the server running.If not specified, it will be detected automatically. If it does not work well, try manual configuration. | | x.x.x.x |
| PUBLIC_PORT | You can manually specify the port number of the network on which the server running.If not specified, it will be detected automatically. If it does not work well, try manual configuration. | | 1024-65535 | | PUBLIC_PORT | You can manually specify the port number of the network on which the server running.If not specified, it will be detected automatically. If it does not work well, try manual configuration. | | 1024-65535 |
| SERVER_NAME | A name for your community server | | "string" | | SERVER_NAME | A name for your community server | | "string" |
| SERVER_DESCRIPTION | A description for your server | | "string"
| SERVER_PASSWORD | Secure your community server with a password | | "string" | | SERVER_PASSWORD | Secure your community server with a password | | "string" |
| ADMIN_PASSWORD | Secure administration access in the server with a password | | "string" | | ADMIN_PASSWORD | Secure administration access in the server with a password | | "string" |
| UPDATE_ON_BOOT** | Update/Install the server when the docker container starts (THIS HAS TO BE ENABLED THE FIRST TIME YOU RUN THE CONTAINER) | true | true/false | | UPDATE_ON_BOOT** | Update/Install the server when the docker container starts (THIS HAS TO BE ENABLED THE FIRST TIME YOU RUN THE CONTAINER) | true | true/false |

View File

@@ -20,5 +20,6 @@ services:
- COMMUNITY=false # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD! - COMMUNITY=false # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
# Enable the environment variables below if you have COMMUNITY=true # Enable the environment variables below if you have COMMUNITY=true
# - SERVER_NAME="World of Pals" # - SERVER_NAME="World of Pals"
- SERVER_DESCRIPTION="Hello World"
volumes: volumes:
- ./palworld:/palworld/ - ./palworld:/palworld/

View File

@@ -14,6 +14,7 @@ data:
# Enable the environment variables below if you have COMMUNITY=true # Enable the environment variables below if you have COMMUNITY=true
# SERVER_PASSWORD: "yourServerPassword" # SERVER_PASSWORD: "yourServerPassword"
SERVER_NAME: "Server_Name" # Note, it seems spaces are not supported, so use underlines. SERVER_NAME: "Server_Name" # Note, it seems spaces are not supported, so use underlines.
SERVER_DESCRIPTION: ""
--- ---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap

View File

@@ -26,6 +26,10 @@ if [ -n "${SERVER_NAME}" ]; then
STARTCOMMAND="${STARTCOMMAND} -servername=${SERVER_NAME}" STARTCOMMAND="${STARTCOMMAND} -servername=${SERVER_NAME}"
fi fi
if [ -n "${SERVER_DESCRIPTION}" ]; then
STARTCOMMAND="${STARTCOMMAND} -serverdescription=${SERVER_DESCRIPTION}"
fi
if [ -n "${SERVER_PASSWORD}" ]; then if [ -n "${SERVER_PASSWORD}" ]; then
STARTCOMMAND="${STARTCOMMAND} -serverpassword=${SERVER_PASSWORD}" STARTCOMMAND="${STARTCOMMAND} -serverpassword=${SERVER_PASSWORD}"
fi fi