4
0

_default.cfg 5.2 KB

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