|
| 1 | +################################## |
| 2 | +######## Default Settings ######## |
| 3 | +################################## |
| 4 | +# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
| 5 | +# Copy settings from here and use them in either: |
| 6 | +# common.cfg - applies settings to every instance. |
| 7 | +# [instance].cfg - applies settings to a specific instance. |
| 8 | + |
| 9 | +#### Game Server Settings #### |
| 10 | + |
| 11 | +## SteamCMD Login | https://docs.linuxgsm.com/steamcmd#steamcmd-login |
| 12 | +steamuser="username" |
| 13 | +steampass='password' |
| 14 | + |
| 15 | +## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
| 16 | +# https://docs.linuxgsm.com/game-servers/counter-strike-2 |
| 17 | +# [Game Modes] gametype gamemode gamemodeflags skirmishid mapgroup (you can mix these across all Game Modes except Danger Zone, but use only one) |
| 18 | +# Arms Race 1 0 0 0 mg_armsrace |
| 19 | +# Boom! Headshot! 1 2 0 6 mg_skirmish_headshots |
| 20 | +# Classic Casual 0 0 0 0 mg_casualsigma, mg_casualdelta |
| 21 | +# Classic Competitive (Default) 0 1 0 0 mg_active, mg_reserves, mg_hostage, mg_de_dust2, ... |
| 22 | +# Classic Competitive (Short Match) 0 1 32 0 mg_active, mg_reserves, mg_hostage, mg_de_dust2, ... |
| 23 | +# Danger Zone 6 0 0 0 mg_dz_blacksite (map: dz_blacksite), mg_dz_sirocco (map: dz_sirocco) |
| 24 | +# Deathmatch (Default) 1 2 0 0 mg_deathmatch |
| 25 | +# Deathmatch (Free For All) 1 2 32 0 mg_deathmatch |
| 26 | +# Deathmatch (Team vs Team) 1 2 4 0 mg_deathmatch |
| 27 | +# Demolition 1 1 0 0 mg_demolition |
| 28 | +# Flying Scoutsman 0 0 0 3 mg_skirmish_flyingscoutsman |
| 29 | +# Hunter-Gatherers 1 2 0 7 mg_skirmish_huntergatherers |
| 30 | +# Retakes 0 0 0 12 mg_skirmish_retakes |
| 31 | +# Stab Stab Zap 0 0 0 1 mg_skirmish_stabstabzap |
| 32 | +# Trigger Discipline 0 0 0 4 mg_skirmish_triggerdiscipline |
| 33 | +# Wingman 0 2 0 0 mg_de_prime, mg_de_blagai, mg_de_vertigo, mg_de_inferno, mg_de_overpass, mg_de_cbble, mg_de_train, mg_de_shortnuke, mg_de_shortdust, mg_de_lake |
| 34 | +gametype="0" |
| 35 | +gamemode="1" |
| 36 | +gamemodeflags="0" |
| 37 | +skirmishid="0" |
| 38 | +mapgroup="mg_active" |
| 39 | +ip="0.0.0.0" |
| 40 | +port="27015" |
| 41 | +defaultmap="de_dust2" |
| 42 | +maxplayers="16" |
| 43 | +tickrate="64" |
| 44 | + |
| 45 | +## Game Server Login Token (GSLT): Required |
| 46 | +# GSLT is required for running a public server. |
| 47 | +# More info: https://docs.linuxgsm.com/steamcmd/gslt |
| 48 | +gslt="" |
| 49 | + |
| 50 | +## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
| 51 | +startparameters="-dedicated +sv_setsteamaccount ${gslt} +map ${defaultmap} +game_type 0 +game_mode 1 +sv_logfile 1 -serverlogging +exec ${selfname}.cfg" |
| 52 | + |
| 53 | +#### LinuxGSM Settings #### |
| 54 | + |
| 55 | +## LinuxGSM Stats |
| 56 | +# Send useful stats to LinuxGSM developers. |
| 57 | +# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
| 58 | +# (on|off) |
| 59 | +stats="off" |
| 60 | + |
| 61 | +## Notification Alerts |
| 62 | +# (on|off) |
| 63 | + |
| 64 | +# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
| 65 | +displayip="" |
| 66 | + |
| 67 | +# More info | https://docs.linuxgsm.com/alerts#more-info |
| 68 | +postalert="off" |
| 69 | + |
| 70 | +# Alert on Start/Stop/Restart |
| 71 | +statusalert="off" |
| 72 | + |
| 73 | +# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
| 74 | +discordalert="off" |
| 75 | +discordwebhook="webhook" |
| 76 | + |
| 77 | +# Email Alerts | https://docs.linuxgsm.com/alerts/email |
| 78 | +emailalert="off" |
| 79 | + |
| 80 | +emailfrom="" |
| 81 | + |
| 82 | +# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
| 83 | +gotifyalert="off" |
| 84 | +gotifytoken="token" |
| 85 | +gotifywebhook="webhook" |
| 86 | + |
| 87 | +# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
| 88 | +iftttalert="off" |
| 89 | +ifttttoken="accesstoken" |
| 90 | +iftttevent="linuxgsm_alert" |
| 91 | + |
| 92 | +# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
| 93 | +pushbulletalert="off" |
| 94 | +pushbullettoken="accesstoken" |
| 95 | +channeltag="" |
| 96 | + |
| 97 | +# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
| 98 | +pushoveralert="off" |
| 99 | +pushovertoken="accesstoken" |
| 100 | +pushoveruserkey="userkey" |
| 101 | + |
| 102 | +# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
| 103 | +rocketchatalert="off" |
| 104 | +rocketchatwebhook="webhook" |
| 105 | + |
| 106 | +# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
| 107 | +slackalert="off" |
| 108 | +slackwebhook="webhook" |
| 109 | + |
| 110 | +# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
| 111 | +# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
| 112 | +# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help". |
| 113 | +telegramapi="api.telegram.org" |
| 114 | +telegramalert="off" |
| 115 | +telegramtoken="accesstoken" |
| 116 | +telegramchatid="" |
| 117 | +curlcustomstring="" |
| 118 | + |
| 119 | +## Updating | https://docs.linuxgsm.com/commands/update |
| 120 | +updateonstart="off" |
| 121 | + |
| 122 | +## Backup | https://docs.linuxgsm.com/commands/backup |
| 123 | +maxbackups="4" |
| 124 | +maxbackupdays="30" |
| 125 | +stoponbackup="on" |
| 126 | + |
| 127 | +## Logging | https://docs.linuxgsm.com/features/logging |
| 128 | +consolelogging="on" |
| 129 | +logdays="7" |
| 130 | + |
| 131 | +## Monitor | https://docs.linuxgsm.com/commands/monitor |
| 132 | +# Query delay time |
| 133 | +querydelay="1" |
| 134 | + |
| 135 | +## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
| 136 | +ansi="on" |
| 137 | + |
| 138 | +#### Advanced Settings #### |
| 139 | + |
| 140 | +## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
| 141 | +sleeptime="0.5" |
| 142 | + |
| 143 | +## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
| 144 | +# Server appid |
| 145 | +appid="730" |
| 146 | +steamcmdforcewindows="no" |
| 147 | +# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
| 148 | +branch="" |
| 149 | +betapassword="" |
| 150 | +# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
| 151 | +steammaster="true" |
| 152 | + |
| 153 | +## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
| 154 | +# 1: tmux kill |
| 155 | +# 2: CTRL+c |
| 156 | +# 3: quit |
| 157 | +# 4: quit 120s |
| 158 | +# 5: stop |
| 159 | +# 6: q |
| 160 | +# 7: exit |
| 161 | +# 8: 7 Days to Die |
| 162 | +# 9: GoldSrc |
| 163 | +# 10: Avorion |
| 164 | +# 11: end |
| 165 | +stopmode="9" |
| 166 | + |
| 167 | +## Query mode |
| 168 | +# 1: session only |
| 169 | +# 2: gamedig (gsquery fallback) |
| 170 | +# 3: gamedig |
| 171 | +# 4: gsquery |
| 172 | +# 5: tcp |
| 173 | +querymode="2" |
| 174 | +querytype="protocol-valve" |
| 175 | + |
| 176 | +## Console type |
| 177 | +consoleverbose="yes" |
| 178 | +consoleinteract="yes" |
| 179 | + |
| 180 | +## Game Server Details |
| 181 | +# Do not edit |
| 182 | +gamename="Counter-Strike 2" |
| 183 | +engine="source2" |
| 184 | +glibc="2.31" |
| 185 | + |
| 186 | +#### Directories #### |
| 187 | +# Edit with care |
| 188 | + |
| 189 | +## Game Server Directories |
| 190 | +systemdir="${serverfiles}/game/csgo" |
| 191 | +executabledir="${serverfiles}/game/bin/linuxsteamrt64" |
| 192 | +executable="./cs2" |
| 193 | +servercfgdir="${systemdir}/cfg" |
| 194 | +servercfg="${selfname}.cfg" |
| 195 | +servercfgdefault="server.cfg" |
| 196 | +servercfgfullpath="${servercfgdir}/${servercfg}" |
| 197 | + |
| 198 | +## Backup Directory |
| 199 | +backupdir="${lgsmdir}/backup" |
| 200 | + |
| 201 | +## Logging Directories |
| 202 | +[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
| 203 | +gamelogdir="${systemdir}/logs" |
| 204 | +lgsmlogdir="${logdir}/script" |
| 205 | +consolelogdir="${logdir}/console" |
| 206 | +lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
| 207 | +consolelog="${consolelogdir}/${selfname}-console.log" |
| 208 | +alertlog="${lgsmlogdir}/${selfname}-alert.log" |
| 209 | +postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
| 210 | + |
| 211 | +## Logs Naming |
| 212 | +lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
| 213 | +consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
| 214 | + |
| 215 | +## Log Parameters |
| 216 | +logtimestamp="off" |
| 217 | +logtimestampformat="%Y-%m-%d %H:%M:%S" |
0 commit comments