_default.cfg 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. ## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
  10. servername="LinuxGSM Server"
  11. ip="0.0.0.0"
  12. port="12871"
  13. queryport="12881"
  14. maxplayers="20"
  15. defaultmap="" #Optional
  16. creativemode="0" #Free Build: creativemode="1"
  17. gamelog="gamelog.txt"
  18. ## Adding admins using STEAMID64
  19. # Example : addadmin 012345678901234567; addadmin 987654321098765432
  20. admins=""
  21. ## Advanced Server Start Settings
  22. # Rollback server state (remove after start command)
  23. loadsave=""
  24. ## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
  25. # Edit with care | http://hurtworld.wikia.com/wiki/Hosting_A_Server
  26. fn_parms(){
  27. parms="-batchmode -nographics -exec \"host ${port} ${defaultmap} ${loadsave};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode};${admins}\" -logfile \"${gamelog}\" "
  28. }
  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. postdays="7"
  42. posttarget="https://termbin.com"
  43. # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
  44. discordalert="off"
  45. discordwebhook="webhook"
  46. # Email Alerts | https://docs.linuxgsm.com/alerts/email
  47. emailalert="off"
  48. email="email@example.com"
  49. emailfrom=""
  50. # IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
  51. iftttalert="off"
  52. ifttttoken="accesstoken"
  53. iftttevent="linuxgsm_alert"
  54. # Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
  55. mailgunalert="off"
  56. mailguntoken="accesstoken"
  57. mailgundomain="example.com"
  58. mailgunemailfrom="alert@example.com"
  59. mailgunemail="email@myemail.com"
  60. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  61. pushbulletalert="off"
  62. pushbullettoken="accesstoken"
  63. channeltag=""
  64. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  65. pushoveralert="off"
  66. pushovertoken="accesstoken"
  67. # Slack Alerts | https://docs.linuxgsm.com/alerts/slack
  68. slackalert="off"
  69. slackwebhook="webhook"
  70. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  71. # You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
  72. # like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
  73. # any custom string in curl - simple ignore this parameter.
  74. telegramalert="off"
  75. telegramtoken="accesstoken"
  76. telegramchatid=""
  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. ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
  96. # Server appid
  97. appid="405100"
  98. # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
  99. branch=""
  100. # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
  101. steammaster="false"
  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. stopmode="2"
  114. ## Query mode
  115. # 1: session only
  116. # 2: gamedig + gsquery
  117. # 3: gamedig
  118. # 4: gsquery
  119. # 5: tcp
  120. querymode="2"
  121. querytype="protocol-valve"
  122. ## Game Server Details
  123. # Do not edit
  124. gamename="Hurtworld"
  125. engine="unity3d"
  126. glibc="2.15"
  127. #### Directories ####
  128. # Edit with care
  129. ## Game Server Directories
  130. systemdir="${serverfiles}"
  131. executabledir="${serverfiles}"
  132. executable=$([ "$(uname -m)" == "x86_64" ] && echo -e "./Hurtworld.x86_64" || echo -e "./Hurtworld.x86")
  133. ## Backup Directory
  134. backupdir="${lgsmdir}/backup"
  135. ## Logging Directories
  136. logdir="${rootdir}/log"
  137. gamelogdir="${logdir}/server"
  138. lgsmlogdir="${logdir}/script"
  139. consolelogdir="${logdir}/console"
  140. gamelog="${gamelogdir}/${selfname}-game.log"
  141. lgsmlog="${lgsmlogdir}/${selfname}-script.log"
  142. consolelog="${consolelogdir}/${selfname}-console.log"
  143. alertlog="${lgsmlogdir}/${selfname}-alert.log"
  144. postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
  145. ## Logs Naming
  146. gamelogdate="${gamelogdir}/${selfname}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
  147. lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  148. consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"