From 1f23ae09925f4208bb63d7cae7f8b081beead17d Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Thu, 9 Nov 2023 18:22:17 +0200 Subject: [PATCH] add masterconfig --- Dockerfile | 3 ++- masterconfig.ini | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 masterconfig.ini diff --git a/Dockerfile b/Dockerfile index c1da6ff..53470e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ RUN apt-get update -qq && apt-get install -qq libmariadb3 --no-install-recommend COPY ./DarkflameServer/build /app COPY ./start.sh /app/ +COPY ./masterconfig.ini /app/ RUN chmod +x /app/start.sh @@ -16,4 +17,4 @@ ENV MAX_CLIENTS 999 ENV TEAM_LOOT 1 ENV CLIENT_VERSION 171022 -ENTRYPOINT [ "start.sh" ] +ENTRYPOINT [ "/app/start.sh" ] diff --git a/masterconfig.ini b/masterconfig.ini new file mode 100644 index 0000000..f70a92f --- /dev/null +++ b/masterconfig.ini @@ -0,0 +1,21 @@ +# The internal ip of the master server +master_ip=localhost + +# Port number +port=2000 + +# The port number to start world servers on. Will be incremented for each world +world_port_start=3000 + +# Use sudo when launching the auth server. +# Required by default if on Linux as auth runs on port 1001 +use_sudo_auth=0 + +# Use sudo when launching the chat server +use_sudo_chat=0 + +# Use sudo when launching world servers +use_sudo_world=0 + +# 0 or 1, should autostart auth, chat, and char servers +prestart_servers=1 \ No newline at end of file