_default.cfg 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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. #### Game Server Settings ####
  9. ## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
  10. # Note that for TF2, maxplayers > 33 must be specified like so:
  11. # maxplayers="101 -unrestricted_maxplayers"
  12. ip="0.0.0.0"
  13. port="27015"
  14. clientport="27005"
  15. sourcetvport="27020"
  16. defaultmap="cp_badlands"
  17. maxplayers="16"
  18. ## Game Server Login Token (GSLT): Optional
  19. # GSLT can be used for running a public server.
  20. # More info: https://docs.linuxgsm.com/steamcmd/gslt
  21. gslt=""
  22. ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
  23. startparameters="-game tf -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} -norestart"
  24. ## Extra Parameters | https://docs.linuxgsm.com/configuration/start-parameters#extra-parameters
  25. # Added to the end of startparameters.
  26. extraparams=""
  27. #### LinuxGSM Settings ####
  28. ## LinuxGSM Stats
  29. # Send useful stats to LinuxGSM developers.
  30. # https://docs.linuxgsm.com/configuration/linuxgsm-stats
  31. # (on|off)
  32. stats="off"
  33. ## Notification Alerts
  34. # (on|off)
  35. # Display IP | https://docs.linuxgsm.com/alerts#display-ip
  36. displayip=""
  37. # More info | https://docs.linuxgsm.com/alerts#more-info
  38. postalert="off"
  39. # Alert on Start/Stop/Restart
  40. statusalert="off"
  41. # Minutes to wait between repeated monitor alerts, 0 sends every alert
  42. alertcooldown="0"
  43. # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
  44. discordalert="off"
  45. discordwebhook="webhook"
  46. # Email Alerts | https://docs.linuxgsm.com/alerts/email
  47. emailalert="off"
  48. email="email@example.com"
  49. emailfrom=""
  50. # Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
  51. gotifyalert="off"
  52. gotifytoken="token"
  53. gotifywebhook="webhook"
  54. # IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
  55. iftttalert="off"
  56. ifttttoken="accesstoken"
  57. iftttevent="linuxgsm_alert"
  58. # ntfy Alerts | https://docs.linuxgsm.com/alerts/ntfy
  59. ntfyalert="off"
  60. ntfytopic="LinuxGSM"
  61. ntfyserver="https://ntfy.sh"
  62. ntfytoken=""
  63. ntfyusername=""
  64. ntfypassword=""
  65. ntfypriority=""
  66. ntfytags=""
  67. # Matrix Alerts | https://docs.linuxgsm.com/alerts/matrix
  68. matrixalert="off"
  69. matrixhomeserver="matrix.org"
  70. matrixtoken="accesstoken"
  71. matrixroom=""
  72. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  73. pushbulletalert="off"
  74. pushbullettoken="accesstoken"
  75. channeltag=""
  76. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  77. pushoveralert="off"
  78. pushovertoken="accesstoken"
  79. pushoveruserkey="userkey"
  80. # Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
  81. rocketchatalert="off"
  82. rocketchatwebhook="webhook"
  83. # Slack Alerts | https://docs.linuxgsm.com/alerts/slack
  84. slackalert="off"
  85. slackwebhook="webhook"
  86. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  87. # You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
  88. # For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all".
  89. telegramapi="api.telegram.org"
  90. telegramalert="off"
  91. telegramtoken="accesstoken"
  92. telegramchatid=""
  93. telegramthreadid=""
  94. telegramsilentnotification="false"
  95. curlcustomstring=""
  96. ## Stop | https://docs.linuxgsm.com/commands/start-stop-restart
  97. stoponlyifnoplayers="off"
  98. stoponlyifnoplayersallcommands="on"
  99. ## Player Warnings | https://docs.linuxgsm.com/features/player-warnings
  100. # Minutes to warn players in-game before a stop, restart or update. 0 to disable.
  101. # e.g. 15 warns at 15, 10, 5, 3 and 1 minutes.
  102. warnplayerstimer="0"
  103. ## Updating | https://docs.linuxgsm.com/commands/update
  104. updateonstart="off"
  105. ## Backup | https://docs.linuxgsm.com/commands/backup
  106. maxbackups="4"
  107. maxbackupdays="30"
  108. stoponbackup="on"
  109. ## Fastdl | https://docs.linuxgsm.com/commands/fastdl
  110. # Paths to leave out of Fastdl, relative to the Fastdl directory and separated by spaces.
  111. # e.g. "maps/workshop/ sound/music/"
  112. fastdlexclude="maps/workshop/"
  113. ## Logging | https://docs.linuxgsm.com/features/logging
  114. consolelogging="on"
  115. logdays="7"
  116. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  117. # Query delay time
  118. querydelay="1"
  119. ## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
  120. ansi="on"
  121. #### Advanced Settings ####
  122. ## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
  123. sleeptime="0.5"
  124. ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
  125. # Server appid
  126. appid="232250"
  127. steamcmdforcewindows="no"
  128. # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
  129. branch=""
  130. betapassword=""
  131. # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
  132. steammaster="true"
  133. ## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
  134. # 1: tmux kill
  135. # 2: CTRL+c
  136. # 3: quit
  137. # 4: quit 120s
  138. # 5: stop
  139. # 6: q
  140. # 7: exit
  141. # 8: 7 Days to Die
  142. # 9: GoldSrc
  143. # 10: Avorion
  144. # 11: end
  145. stopmode="3"
  146. ## Query mode
  147. # 1: session only
  148. # 2: gamedig (gsquery fallback)
  149. # 3: gamedig
  150. # 4: gsquery
  151. # 5: tcp
  152. querymode="2"
  153. querytype="protocol-valve"
  154. ## Console type
  155. consoleverbose="yes"
  156. consoleinteract="yes"
  157. ## Game Server Details
  158. # Do not edit
  159. gamename="Team Fortress 2"
  160. engine="source"
  161. glibc="2.29"
  162. #### Directories ####
  163. # Edit with care
  164. ## Game Server Directories
  165. systemdir="${serverfiles}/tf"
  166. executabledir="${serverfiles}"
  167. executable="./srcds_run_64"
  168. servercfgdir="${systemdir}/cfg"
  169. servercfg="${selfname}.cfg"
  170. servercfgdefault="server.cfg"
  171. servercfgfullpath="${servercfgdir}/${servercfg}"
  172. ## Backup Directory
  173. backupdir="${lgsmdir}/backup"
  174. ## Logging Directories
  175. [ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
  176. gamelogdir="${systemdir}/logs"
  177. lgsmlogdir="${logdir}/script"
  178. consolelogdir="${logdir}/console"
  179. lgsmlog="${lgsmlogdir}/${selfname}-script.log"
  180. consolelog="${consolelogdir}/${selfname}-console.log"
  181. alertlog="${lgsmlogdir}/${selfname}-alert.log"
  182. postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
  183. ## Logs Naming
  184. lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  185. consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  186. ## Log Parameters
  187. logtimestamp="off"
  188. logtimestampformat="%Y-%m-%d %H:%M:%S"