_default.cfg 6.4 KB

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