_default.cfg 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. # https://docs.linuxgsm.com/game-servers/counter-strike-2
  11. ip="0.0.0.0"
  12. port="27015"
  13. maxplayers="16"
  14. wsapikey=""
  15. ## Game Server Login Token (GSLT): Required
  16. # GSLT is required for running a public server.
  17. # More info: https://docs.linuxgsm.com/steamcmd/gslt
  18. gslt=""
  19. ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
  20. startparameters="-dedicated -ip ${ip} -port ${port} -maxplayers ${maxplayers} -authkey ${wsapikey} +exec ${selfname}.cfg"
  21. #### LinuxGSM Settings ####
  22. ## LinuxGSM Stats
  23. # Send useful stats to LinuxGSM developers.
  24. # https://docs.linuxgsm.com/configuration/linuxgsm-stats
  25. # (on|off)
  26. stats="off"
  27. ## Notification Alerts
  28. # (on|off)
  29. # Display IP | https://docs.linuxgsm.com/alerts#display-ip
  30. displayip=""
  31. # More info | https://docs.linuxgsm.com/alerts#more-info
  32. postalert="off"
  33. # Alert on Start/Stop/Restart
  34. statusalert="off"
  35. # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
  36. discordalert="off"
  37. discordwebhook="webhook"
  38. # Email Alerts | https://docs.linuxgsm.com/alerts/email
  39. emailalert="off"
  40. email="email@example.com"
  41. emailfrom=""
  42. # Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
  43. gotifyalert="off"
  44. gotifytoken="token"
  45. gotifywebhook="webhook"
  46. # IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
  47. iftttalert="off"
  48. ifttttoken="accesstoken"
  49. iftttevent="linuxgsm_alert"
  50. # ntfy Alerts | https://docs.linuxgsm.com/alerts/ntfy
  51. ntfyalert="off"
  52. ntfytopic="LinuxGSM"
  53. ntfyserver="https://ntfy.sh"
  54. ntfytoken=""
  55. ntfyusername=""
  56. ntfypassword=""
  57. ntfypriority=""
  58. ntfytags=""
  59. # ntfy Alerts | https://docs.linuxgsm.com/alerts/ntfy
  60. ntfyalert="off"
  61. ntfytopic="LinuxGSM"
  62. ntfyserver="https://ntfy.sh"
  63. ntfytoken=""
  64. ntfyusername=""
  65. ntfypassword=""
  66. ntfypriority=""
  67. ntfytags=""
  68. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  69. pushbulletalert="off"
  70. pushbullettoken="accesstoken"
  71. channeltag=""
  72. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  73. pushoveralert="off"
  74. pushovertoken="accesstoken"
  75. pushoveruserkey="userkey"
  76. # Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
  77. rocketchatalert="off"
  78. rocketchatwebhook="webhook"
  79. # Slack Alerts | https://docs.linuxgsm.com/alerts/slack
  80. slackalert="off"
  81. slackwebhook="webhook"
  82. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  83. # You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
  84. # For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all".
  85. telegramapi="api.telegram.org"
  86. telegramalert="off"
  87. telegramtoken="accesstoken"
  88. telegramchatid=""
  89. telegramthreadid=""
  90. telegramsilentnotification="false"
  91. curlcustomstring=""
  92. ## Updating | https://docs.linuxgsm.com/commands/update
  93. updateonstart="off"
  94. ## Backup | https://docs.linuxgsm.com/commands/backup
  95. maxbackups="4"
  96. maxbackupdays="30"
  97. stoponbackup="on"
  98. ## Logging | https://docs.linuxgsm.com/features/logging
  99. consolelogging="on"
  100. logdays="7"
  101. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  102. # Query delay time
  103. querydelay="1"
  104. ## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
  105. ansi="on"
  106. #### Advanced Settings ####
  107. ## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
  108. sleeptime="0.5"
  109. ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
  110. # Server appid
  111. appid="730"
  112. steamcmdforcewindows="no"
  113. # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
  114. branch=""
  115. betapassword=""
  116. # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
  117. steammaster="true"
  118. ## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
  119. # 1: tmux kill
  120. # 2: CTRL+c
  121. # 3: quit
  122. # 4: quit 120s
  123. # 5: stop
  124. # 6: q
  125. # 7: exit
  126. # 8: 7 Days to Die
  127. # 9: GoldSrc
  128. # 10: Avorion
  129. # 11: end
  130. stopmode="9"
  131. ## Query mode
  132. # 1: session only
  133. # 2: gamedig (gsquery fallback)
  134. # 3: gamedig
  135. # 4: gsquery
  136. # 5: tcp
  137. querymode="2"
  138. querytype="protocol-valve"
  139. ## Console type
  140. consoleverbose="yes"
  141. consoleinteract="yes"
  142. ## Game Server Details
  143. # Do not edit
  144. gamename="Counter-Strike 2"
  145. engine="source2"
  146. glibc="2.31"
  147. #### Directories ####
  148. # Edit with care
  149. ## Game Server Directories
  150. systemdir="${serverfiles}/game/csgo"
  151. executabledir="${serverfiles}/game"
  152. executable="./cs2.sh"
  153. servercfgdir="${systemdir}/cfg"
  154. servercfg="${selfname}.cfg"
  155. servercfgdefault="server.cfg"
  156. servercfgfullpath="${servercfgdir}/${servercfg}"
  157. ## Backup Directory
  158. backupdir="${lgsmdir}/backup"
  159. ## Logging Directories
  160. [ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
  161. gamelogdir="${systemdir}/logs"
  162. lgsmlogdir="${logdir}/script"
  163. consolelogdir="${logdir}/console"
  164. lgsmlog="${lgsmlogdir}/${selfname}-script.log"
  165. consolelog="${consolelogdir}/${selfname}-console.log"
  166. alertlog="${lgsmlogdir}/${selfname}-alert.log"
  167. postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
  168. ## Logs Naming
  169. lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  170. consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  171. ## Log Parameters
  172. logtimestamp="off"
  173. logtimestampformat="%Y-%m-%d %H:%M:%S"