_default.cfg 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  79. pushbulletalert="off"
  80. pushbullettoken="accesstoken"
  81. channeltag=""
  82. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  83. pushoveralert="off"
  84. pushovertoken="accesstoken"
  85. pushoveruserkey="userkey"
  86. # Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
  87. rocketchatalert="off"
  88. rocketchatwebhook="webhook"
  89. # Slack Alerts | https://docs.linuxgsm.com/alerts/slack
  90. slackalert="off"
  91. slackwebhook="webhook"
  92. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  93. # You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
  94. # For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all".
  95. telegramapi="api.telegram.org"
  96. telegramalert="off"
  97. telegramtoken="accesstoken"
  98. telegramchatid=""
  99. telegramthreadid=""
  100. telegramsilentnotification="false"
  101. curlcustomstring=""
  102. ## Updating | https://docs.linuxgsm.com/commands/update
  103. updateonstart="off"
  104. ## Backup | https://docs.linuxgsm.com/commands/backup
  105. maxbackups="4"
  106. maxbackupdays="30"
  107. stoponbackup="on"
  108. ## Logging | https://docs.linuxgsm.com/features/logging
  109. consolelogging="on"
  110. logdays="7"
  111. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  112. # Query delay time
  113. querydelay="5"
  114. ## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
  115. ansi="on"
  116. #### Advanced Settings ####
  117. ## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
  118. sleeptime="0.5"
  119. ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
  120. # Server appid
  121. appid="896660"
  122. steamcmdforcewindows="no"
  123. # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
  124. branch=""
  125. betapassword=""
  126. # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
  127. steammaster="true"
  128. ## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
  129. # 1: tmux kill
  130. # 2: CTRL+c
  131. # 3: quit
  132. # 4: quit 120s
  133. # 5: stop
  134. # 6: q
  135. # 7: exit
  136. # 8: 7 Days to Die
  137. # 9: GoldSrc
  138. # 10: Avorion
  139. # 11: end
  140. stopmode="2"
  141. ## Query mode
  142. # 1: session only
  143. # 2: gamedig (gsquery fallback)
  144. # 3: gamedig
  145. # 4: gsquery
  146. # 5: tcp
  147. querymode="2"
  148. querytype="protocol-valve"
  149. ## Console type
  150. consoleverbose="yes"
  151. consoleinteract="no"
  152. ## Game Server Details
  153. # Do not edit
  154. gamename="Valheim"
  155. engine="unity3d"
  156. glibc="2.15"
  157. #### Directories ####
  158. # Edit with care
  159. ## Game Server Directories
  160. systemdir="${serverfiles}"
  161. executabledir="${serverfiles}"
  162. executable="./valheim_server.x86_64"
  163. ## Backup Directory
  164. backupdir="${lgsmdir}/backup"
  165. ## Logging Directories
  166. [ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
  167. gamelogdir="${systemdir}/Saved/Logs"
  168. lgsmlogdir="${logdir}/script"
  169. consolelogdir="${logdir}/console"
  170. lgsmlog="${lgsmlogdir}/${selfname}-script.log"
  171. consolelog="${consolelogdir}/${selfname}-console.log"
  172. alertlog="${lgsmlogdir}/${selfname}-alert.log"
  173. postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
  174. ## Logs Naming
  175. lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  176. consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  177. ## Log Parameters
  178. logtimestamp="off"
  179. logtimestampformat="%Y-%m-%d %H:%M:%S"