_default.cfg 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  55. pushbulletalert="off"
  56. pushbullettoken="accesstoken"
  57. channeltag=""
  58. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  59. pushoveralert="off"
  60. pushovertoken="accesstoken"
  61. pushoveruserkey="userkey"
  62. # Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
  63. rocketchatalert="off"
  64. rocketchatwebhook="webhook"
  65. # Slack Alerts | https://docs.linuxgsm.com/alerts/slack
  66. slackalert="off"
  67. slackwebhook="webhook"
  68. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  69. # You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
  70. # For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all".
  71. telegramapi="api.telegram.org"
  72. telegramalert="off"
  73. telegramtoken="accesstoken"
  74. telegramchatid=""
  75. telegramthreadid=""
  76. telegramsilentnotification="false"
  77. curlcustomstring=""
  78. ## Updating | https://docs.linuxgsm.com/commands/update
  79. updateonstart="off"
  80. ## Backup | https://docs.linuxgsm.com/commands/backup
  81. maxbackups="4"
  82. maxbackupdays="30"
  83. stoponbackup="on"
  84. ## Logging | https://docs.linuxgsm.com/features/logging
  85. consolelogging="on"
  86. logdays="7"
  87. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  88. # Query delay time
  89. querydelay="1"
  90. ## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
  91. ansi="on"
  92. #### Advanced Settings ####
  93. ## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
  94. sleeptime="0.5"
  95. ## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
  96. # 1: tmux kill
  97. # 2: CTRL+c
  98. # 3: quit
  99. # 4: quit 120s
  100. # 5: stop
  101. # 6: q
  102. # 7: exit
  103. # 8: 7 Days to Die
  104. # 9: GoldSrc
  105. # 10: Avorion
  106. # 11: end
  107. # 12: shutdown
  108. stopmode="12"
  109. ## Query mode
  110. # 1: session only
  111. # 2: gamedig (gsquery fallback)
  112. # 3: gamedig
  113. # 4: gsquery
  114. # 5: tcp
  115. querymode="2"
  116. querytype="minecraft"
  117. ## Console type
  118. consoleverbose="yes"
  119. consoleinteract="yes"
  120. ## Game Server Details
  121. # Do not edit
  122. gamename="Velocity Proxy"
  123. engine="lwjgl2"
  124. glibc="null"
  125. #### Directories ####
  126. # Edit with care
  127. ## Game Server Directories
  128. systemdir="${serverfiles}"
  129. executabledir="${serverfiles}"
  130. preexecutable="java -Xmx${javaram}M -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar"
  131. executable="./velocity.jar"
  132. servercfgdir="${systemdir}"
  133. servercfg="velocity.toml"
  134. servercfgdefault="velocity.toml"
  135. servercfgfullpath="${servercfgdir}/${servercfg}"
  136. ## Backup Directory
  137. backupdir="${lgsmdir}/backup"
  138. ## Logging Directories
  139. [ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
  140. gamelogdir="${systemdir}/logs"
  141. lgsmlogdir="${logdir}/script"
  142. consolelogdir="${logdir}/console"
  143. lgsmlog="${lgsmlogdir}/${selfname}-script.log"
  144. consolelog="${consolelogdir}/${selfname}-console.log"
  145. alertlog="${lgsmlogdir}/${selfname}-alert.log"
  146. postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
  147. ## Logs Naming
  148. lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  149. consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  150. ## Log Parameters
  151. logtimestamp="off"
  152. logtimestampformat="%Y-%m-%d %H:%M:%S"