From 6bc5a5d21d78160e540d561e91eaf88b2843e7ed Mon Sep 17 00:00:00 2001 From: Caleb Fultz Date: Sun, 12 Nov 2023 17:00:48 -0500 Subject: [PATCH] Updated/added configs, start.bash, and banlist.txt --- Dockerfile | 5 +++- bin/start.bash | 10 ++++++++ config/default.cfg | 61 ++++++++++++++++++++++++++++++++++++++++++++++ player/banlist.txt | 4 --- 4 files changed, 75 insertions(+), 5 deletions(-) create mode 100644 bin/start.bash create mode 100644 config/default.cfg diff --git a/Dockerfile b/Dockerfile index 4b29878..77b7366 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,10 @@ COPY /player/ /home/zandronum/player/ COPY /iwad/ /home/zandronum/iwad/ COPY /wad/ /home/zandronum/wad/ -RUN wget -O /home/zandronum/config/masterbanlist.txt https://zandronum.com/banlist && cat masterbanlist.txt >> /home/zandronum/player/banlist.txt +# RUN wget -O /home/zandronum/config/masterbanlist.txt https://zandronum.com/banlist && \ +# cat masterbanlist.txt >> /home/zandronum/player/banlist.txt +# Zandronum has a config 'sv_enforcemasterlist' +# so this isnt needed unless you want a local static copy USER root RUN chown -R zandronum:zandronum /home/zandronum diff --git a/bin/start.bash b/bin/start.bash new file mode 100644 index 0000000..b3526bd --- /dev/null +++ b/bin/start.bash @@ -0,0 +1,10 @@ +#!/bin/bash +#borrowed from mccarrmb/docker-doom on Github +zandronum-server \ + -host \ + -port 10666 \ + -iwad "/home/zandronum/iwad/$IWAD" \ + +exec "/home/zandronum/config/$CONFIG" \ + +CrashLog_Dir "/home/zandronum/logs/$SERVER_NAME.log" \ + +CrashLogs 2 \ + +map "$START_MAP" \ No newline at end of file diff --git a/config/default.cfg b/config/default.cfg new file mode 100644 index 0000000..6a72d26 --- /dev/null +++ b/config/default.cfg @@ -0,0 +1,61 @@ +//game options +skill 4 +deathmatch 0 +fraglimit 0 +timelimit 0 +winlimit 0 +pointlimit 0 +duellimit 0 +sv_weaponstay true +sv_itemrespawn true +sv_coop_losekeys false +sv_coop_loseinventory false +sv_coop_loseweapons false +sv_coop_loseammo false +sv_barrelrespawn true +sv_weapondrop true +sv_nojump true +sv_nocrouch true +sv_randomcoopstarts true +sv_disallowbots true +sv_defaultdmflags false +sv_killallmonsters_percentage 95 + +//community +sv_website "https://github.com/cfultz/doom-docker" +sv_motd "This server is running Zandronum on Docker" +sv_hostemail admin@your-domain.com + +//host settings +sv_hostname "Zandronum on Docker" +sv_maxplayers 12 +sv_maxclients 12 +sv_broadcast 0 +sv_maprotation false +sv_randommaprotation false + +//master server settings +sv_updatemaster true +sv_masterip master.zandronum.com:15300 +sv_enforcemasterbanlist true + +//logging +logfile ./log.txt +sv_markchatlines true +sv_logfilenametimestamp false +sv_showlauncherqueries false + +//administration +sv_adminlistfile "/home/zandronum/player/adminlist.txt" +sv_banexemptionfile "/home/zandronum/player/whitelist.txt" +sv_banfile "/home/zandronum/player/banlist.txt" +sv_enforcebans true +sv_rconpassword "rcon_password" +sv_password "connect_password" +sv_joinpassword "join_password" +sv_forcejoinpassword false +sv_forcepassword false +sv_nocallvote false + +//startup map +map E1M1 diff --git a/player/banlist.txt b/player/banlist.txt index d01f7f1..f9e7500 100644 --- a/player/banlist.txt +++ b/player/banlist.txt @@ -1,6 +1,2 @@ // This is your ban list 10.1.2.*: "test block" - 10.1.2.253 - enter some reason - date of ban - type of ban (ex: perm, indefinite) - - - -// This is the master Zandronum List // \ No newline at end of file