_default.cfg 5.0 KB

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