_default.cfg 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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. servername="LinuxGSM"
  11. serverpassword="" # Minimum password length is 5.
  12. port="2456"
  13. worldname="${selfname}"
  14. public="1"
  15. savedir="$HOME/.config/unity3d/IronGate/Valheim"
  16. logFile=""
  17. saveinterval="1800" # Auto-save in seconds.
  18. backups="4"
  19. backupshort="7200"
  20. backuplong="43200"
  21. instanceid="1"
  22. # INSTRUCTIONS FOR WORLD MODIFIERS (from Valheim Dedicated Server Manual.pdf located in serverfiles)
  23. # World modifiers can only be set in the start parameters and can be a combination of the following
  24. # PRESETS:
  25. # Setting a preset will overwrite any other previous modifiers.
  26. # Command line parameter: -preset
  27. # Valid values: normal, casual, easy, hard, hardcore, immersive, hammer.
  28. # MODIFIERS:
  29. # This is set as a combination of key and value, if combined with a preset should be set after.
  30. # Command line parameter: -modifier
  31. # Valid keys and possible values:
  32. # combat: veryeasy, easy, hard, veryhard
  33. # deathPenalty: casual, veryeasy, easy, hard, hardcore
  34. # resources: muchless, less, more, muchmore, most
  35. # raids: none, muchless, less, more, muchmore
  36. # portals: casual, hard, veryhard
  37. # KEYS:
  38. # Sets a world modifier checkbox key.
  39. # Command line parameter: -setkey
  40. # Valid values: nobuildcost, playerevents, passivemobs, nomap
  41. # Example of a combination of modifiers where we set no raids, very hard portals and no map run:
  42. # worldmodifiers="-modifier raids none -modifier portals veryhard -setkey nomap"
  43. # NOTE: removing world modifiers will NOT reset them to default. the modifiers are stored in the world save file (.fwl)
  44. # To go back to default you need to launch the server with the following parameter at least once:
  45. #. worldmodifiers="-preset normal"
  46. worldmodifiers=""
  47. ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
  48. startparameters="-name '${servername}' -password ${serverpassword} -port ${port} -world ${worldname} -public ${public} -savedir '${savedir}' -saveinterval ${saveinterval} -backups ${backups} -backupshort ${backupshort} -backuplong ${backuplong} -crossplay -instanceid ${instanceid} ${logFile:+ -logFile '${logFile}'} ${worldmodifiers:+ ${worldmodifiers}}"
  49. #### LinuxGSM Settings ####
  50. ## LinuxGSM Stats
  51. # Send useful stats to LinuxGSM developers.
  52. # https://docs.linuxgsm.com/configuration/linuxgsm-stats
  53. # (on|off)
  54. stats="off"
  55. ## Notification Alerts
  56. # (on|off)
  57. # Display IP | https://docs.linuxgsm.com/alerts#display-ip
  58. displayip=""
  59. # More info | https://docs.linuxgsm.com/alerts#more-info
  60. postalert="off"
  61. # Alert on Start/Stop/Restart
  62. statusalert="off"
  63. # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
  64. discordalert="off"
  65. discordwebhook="webhook"
  66. # Email Alerts | https://docs.linuxgsm.com/alerts/email
  67. emailalert="off"
  68. email="email@example.com"
  69. emailfrom=""
  70. # Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
  71. gotifyalert="off"
  72. gotifytoken="token"
  73. gotifywebhook="webhook"
  74. # IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
  75. iftttalert="off"
  76. ifttttoken="accesstoken"
  77. iftttevent="linuxgsm_alert"
  78. # ntfy Alerts | https://docs.linuxgsm.com/alerts/ntfy
  79. ntfyalert="off"
  80. ntfytopic="LinuxGSM"
  81. ntfyserver="https://ntfy.sh"
  82. ntfytoken=""
  83. ntfyusername=""
  84. ntfypassword=""
  85. ntfypriority=""
  86. ntfytags=""
  87. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  88. pushbulletalert="off"
  89. pushbullettoken="accesstoken"
  90. channeltag=""
  91. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  92. pushoveralert="off"
  93. pushovertoken="accesstoken"
  94. pushoveruserkey="userkey"
  95. # Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
  96. rocketchatalert="off"
  97. rocketchatwebhook="webhook"
  98. # Slack Alerts | https://docs.linuxgsm.com/alerts/slack
  99. slackalert="off"
  100. slackwebhook="webhook"
  101. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  102. # You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
  103. # For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all".
  104. telegramapi="api.telegram.org"
  105. telegramalert="off"
  106. telegramtoken="accesstoken"
  107. telegramchatid=""
  108. telegramthreadid=""
  109. telegramsilentnotification="false"
  110. curlcustomstring=""
  111. ## Updating | https://docs.linuxgsm.com/commands/update
  112. updateonstart="off"
  113. ## Backup | https://docs.linuxgsm.com/commands/backup
  114. maxbackups="4"
  115. maxbackupdays="30"
  116. stoponbackup="on"
  117. ## Logging | https://docs.linuxgsm.com/features/logging
  118. consolelogging="on"
  119. logdays="7"
  120. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  121. # Query delay time
  122. querydelay="5"
  123. ## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
  124. ansi="on"
  125. #### Advanced Settings ####
  126. ## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
  127. sleeptime="0.5"
  128. ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
  129. # Server appid
  130. appid="896660"
  131. steamcmdforcewindows="no"
  132. # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
  133. branch=""
  134. betapassword=""
  135. # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
  136. steammaster="true"
  137. ## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
  138. # 1: tmux kill
  139. # 2: CTRL+c
  140. # 3: quit
  141. # 4: quit 120s
  142. # 5: stop
  143. # 6: q
  144. # 7: exit
  145. # 8: 7 Days to Die
  146. # 9: GoldSrc
  147. # 10: Avorion
  148. # 11: end
  149. stopmode="2"
  150. ## Query mode
  151. # 1: session only
  152. # 2: gamedig (gsquery fallback)
  153. # 3: gamedig
  154. # 4: gsquery
  155. # 5: tcp
  156. querymode="1"
  157. querytype=""
  158. # Deeper monitoring is possible when the server is public and not using Crossplay:
  159. # querymode="2"
  160. # querytype="protocol-valve"
  161. ## Console type
  162. consoleverbose="yes"
  163. consoleinteract="no"
  164. ## Game Server Details
  165. # Do not edit
  166. gamename="Valheim"
  167. engine="unity3d"
  168. glibc="2.15"
  169. #### Directories ####
  170. # Edit with care
  171. ## Game Server Directories
  172. systemdir="${serverfiles}"
  173. executabledir="${serverfiles}"
  174. executable="./valheim_server.x86_64"
  175. ## Backup Directory
  176. backupdir="${lgsmdir}/backup"
  177. ## Logging Directories
  178. [ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
  179. gamelogdir="${systemdir}/Saved/Logs"
  180. lgsmlogdir="${logdir}/script"
  181. consolelogdir="${logdir}/console"
  182. lgsmlog="${lgsmlogdir}/${selfname}-script.log"
  183. consolelog="${consolelogdir}/${selfname}-console.log"
  184. alertlog="${lgsmlogdir}/${selfname}-alert.log"
  185. postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
  186. ## Logs Naming
  187. lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  188. consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  189. ## Log Parameters
  190. logtimestamp="off"
  191. logtimestampformat="%Y-%m-%d %H:%M:%S"