_default.cfg 4.9 KB

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