_default.cfg 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. # -crossplay routes connections through the PlayFab relay so Xbox/Game Pass players can join.
  49. # Steam-only servers joined by direct IP: copy startparameters to your instance config and remove -crossplay.
  50. # https://docs.linuxgsm.com/game-servers/valheim#crossplay
  51. 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}}"
  52. #### LinuxGSM Settings ####
  53. ## LinuxGSM Stats
  54. # Send useful stats to LinuxGSM developers.
  55. # https://docs.linuxgsm.com/configuration/linuxgsm-stats
  56. # (on|off)
  57. stats="off"
  58. ## Notification Alerts
  59. # (on|off)
  60. # Display IP | https://docs.linuxgsm.com/alerts#display-ip
  61. displayip=""
  62. # More info | https://docs.linuxgsm.com/alerts#more-info
  63. postalert="off"
  64. # Alert on Start/Stop/Restart
  65. statusalert="off"
  66. # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
  67. discordalert="off"
  68. discordwebhook="webhook"
  69. # Email Alerts | https://docs.linuxgsm.com/alerts/email
  70. emailalert="off"
  71. email="email@example.com"
  72. emailfrom=""
  73. # Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
  74. gotifyalert="off"
  75. gotifytoken="token"
  76. gotifywebhook="webhook"
  77. # IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
  78. iftttalert="off"
  79. ifttttoken="accesstoken"
  80. iftttevent="linuxgsm_alert"
  81. # ntfy Alerts | https://docs.linuxgsm.com/alerts/ntfy
  82. ntfyalert="off"
  83. ntfytopic="LinuxGSM"
  84. ntfyserver="https://ntfy.sh"
  85. ntfytoken=""
  86. ntfyusername=""
  87. ntfypassword=""
  88. ntfypriority=""
  89. ntfytags=""
  90. # Matrix Alerts | https://docs.linuxgsm.com/alerts/matrix
  91. matrixalert="off"
  92. matrixhomeserver="matrix.org"
  93. matrixtoken="accesstoken"
  94. matrixroom=""
  95. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  96. pushbulletalert="off"
  97. pushbullettoken="accesstoken"
  98. channeltag=""
  99. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  100. pushoveralert="off"
  101. pushovertoken="accesstoken"
  102. pushoveruserkey="userkey"
  103. # Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
  104. rocketchatalert="off"
  105. rocketchatwebhook="webhook"
  106. # Slack Alerts | https://docs.linuxgsm.com/alerts/slack
  107. slackalert="off"
  108. slackwebhook="webhook"
  109. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  110. # You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
  111. # For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all".
  112. telegramapi="api.telegram.org"
  113. telegramalert="off"
  114. telegramtoken="accesstoken"
  115. telegramchatid=""
  116. telegramthreadid=""
  117. telegramsilentnotification="false"
  118. curlcustomstring=""
  119. ## Stop | https://docs.linuxgsm.com/commands/start-stop-restart
  120. stoponlyifnoplayers="off"
  121. stoponlyifnoplayersallcommands="on"
  122. ## Player Warnings | https://docs.linuxgsm.com/features/player-warnings
  123. # Minutes to warn players in-game before a stop, restart or update. 0 to disable.
  124. # e.g. 15 warns at 15, 10, 5, 3 and 1 minutes.
  125. warnplayerstimer="0"
  126. ## Updating | https://docs.linuxgsm.com/commands/update
  127. updateonstart="off"
  128. ## Backup | https://docs.linuxgsm.com/commands/backup
  129. maxbackups="4"
  130. maxbackupdays="30"
  131. stoponbackup="on"
  132. ## Logging | https://docs.linuxgsm.com/features/logging
  133. consolelogging="on"
  134. logdays="7"
  135. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  136. # Query delay time
  137. querydelay="5"
  138. ## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
  139. ansi="on"
  140. #### Advanced Settings ####
  141. ## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
  142. sleeptime="0.5"
  143. ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
  144. # Server appid
  145. appid="896660"
  146. steamcmdforcewindows="no"
  147. # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
  148. branch=""
  149. betapassword=""
  150. # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
  151. steammaster="true"
  152. ## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
  153. # 1: tmux kill
  154. # 2: CTRL+c
  155. # 3: quit
  156. # 4: quit 120s
  157. # 5: stop
  158. # 6: q
  159. # 7: exit
  160. # 8: 7 Days to Die
  161. # 9: GoldSrc
  162. # 10: Avorion
  163. # 11: end
  164. stopmode="2"
  165. ## Query mode
  166. # 1: session only
  167. # 2: gamedig (gsquery fallback)
  168. # 3: gamedig
  169. # 4: gsquery
  170. # 5: tcp
  171. querymode="1"
  172. querytype=""
  173. # Deeper monitoring is possible when the server is public and not using Crossplay:
  174. # querymode="2"
  175. # querytype="protocol-valve"
  176. ## Console type
  177. consoleverbose="yes"
  178. consoleinteract="no"
  179. ## Game Server Details
  180. # Do not edit
  181. gamename="Valheim"
  182. engine="unity3d"
  183. glibc="2.15"
  184. #### Directories ####
  185. # Edit with care
  186. ## Game Server Directories
  187. systemdir="${serverfiles}"
  188. executabledir="${serverfiles}"
  189. executable="./valheim_server.x86_64"
  190. ## Backup Directory
  191. backupdir="${lgsmdir}/backup"
  192. ## Logging Directories
  193. [ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
  194. gamelogdir="${systemdir}/Saved/Logs"
  195. lgsmlogdir="${logdir}/script"
  196. consolelogdir="${logdir}/console"
  197. lgsmlog="${lgsmlogdir}/${selfname}-script.log"
  198. consolelog="${consolelogdir}/${selfname}-console.log"
  199. alertlog="${lgsmlogdir}/${selfname}-alert.log"
  200. postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
  201. ## Logs Naming
  202. lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  203. consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  204. ## Log Parameters
  205. logtimestamp="off"
  206. logtimestampformat="%Y-%m-%d %H:%M:%S"