_default.cfg 6.0 KB

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