_default.cfg 6.1 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. defaultmap="ns2_summit"
  13. maxplayers="20"
  14. maxspectators="5"
  15. servername="LinuxGSM"
  16. httpuser="admin"
  17. httppassword="CHANGE_ME"
  18. httpport="8080"
  19. modserverport="27031"
  20. serverpassword=""
  21. # Add the following line to the params if you want a private server. Ensuring
  22. # that the password variable above is not left empty.
  23. # -password '${serverpassword}'
  24. ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
  25. startparameters="-name '${servername}' -port ${port} -webadmin -webdomain ${ip} -webuser ${httpuser} -webpassword '${httppassword}' -webport ${httpport} -startmodserver -modserverport ${modserverport} -map ${defaultmap} -limit ${maxplayers} -speclimit ${maxspectators} -config_path '${servercfgdir}' -logdir '${gamelogdir}' -modstorage '${modstoragedir}'"
  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. ## Logging | https://docs.linuxgsm.com/features/logging
  112. consolelogging="on"
  113. logdays="7"
  114. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  115. # Query delay time
  116. querydelay="1"
  117. ## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
  118. ansi="on"
  119. #### Advanced Settings ####
  120. ## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
  121. sleeptime="0.5"
  122. ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
  123. # Server appid
  124. appid="4940"
  125. steamcmdforcewindows="no"
  126. # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
  127. branch=""
  128. betapassword=""
  129. # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
  130. steammaster="true"
  131. ## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
  132. # 1: tmux kill
  133. # 2: CTRL+c
  134. # 3: quit
  135. # 4: quit 120s
  136. # 5: stop
  137. # 6: q
  138. # 7: exit
  139. # 8: 7 Days to Die
  140. # 9: GoldSrc
  141. # 10: Avorion
  142. # 11: end
  143. stopmode="2"
  144. ## Query mode
  145. # 1: session only
  146. # 2: gamedig (gsquery fallback)
  147. # 3: gamedig
  148. # 4: gsquery
  149. # 5: tcp
  150. querymode="2"
  151. querytype="protocol-valve"
  152. ## Console type
  153. consoleverbose="yes"
  154. consoleinteract="no"
  155. ## Game Server Details
  156. # Do not edit
  157. gamename="Natural Selection 2"
  158. engine="spark"
  159. glibc="2.17"
  160. #### Directories ####
  161. # Edit with care
  162. ## Game Server Directories
  163. systemdir="${serverfiles}"
  164. executabledir="${serverfiles}/x64"
  165. executable="./server_linux"
  166. servercfgdir="${systemdir}/${selfname}"
  167. modstoragedir="${servercfgdir}/Workshop"
  168. ## Backup Directory
  169. backupdir="${lgsmdir}/backup"
  170. ## Logging Directories
  171. [ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
  172. gamelogdir="${systemdir}/logs"
  173. lgsmlogdir="${logdir}/script"
  174. consolelogdir="${logdir}/console"
  175. lgsmlog="${lgsmlogdir}/${selfname}-script.log"
  176. consolelog="${consolelogdir}/${selfname}-console.log"
  177. alertlog="${lgsmlogdir}/${selfname}-alert.log"
  178. postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
  179. ## Logs Naming
  180. lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  181. consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  182. ## Log Parameters
  183. logtimestamp="off"
  184. logtimestampformat="%Y-%m-%d %H:%M:%S"