4
0

_default.cfg 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. ip="0.0.0.0"
  11. port="34197"
  12. rconport="34198"
  13. rconpassword="CHANGE_ME"
  14. branch="stable" # values: stable, experimental
  15. ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
  16. startparameters="--bind ${ip} --start-server ${serverfiles}/save1.zip --server-settings ${servercfgfullpath} --port ${port} --rcon-port ${rconport} --rcon-password ${rconpassword}"
  17. #### LinuxGSM Settings ####
  18. ## LinuxGSM Stats
  19. # Send useful stats to LinuxGSM developers.
  20. # https://docs.linuxgsm.com/configuration/linuxgsm-stats
  21. # (on|off)
  22. stats="off"
  23. ## Notification Alerts
  24. # (on|off)
  25. # Display IP | https://docs.linuxgsm.com/alerts#display-ip
  26. displayip=""
  27. # More info | https://docs.linuxgsm.com/alerts#more-info
  28. postalert="off"
  29. # Alert on Start/Stop/Restart
  30. statusalert="off"
  31. # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
  32. discordalert="off"
  33. discordwebhook="webhook"
  34. # Email Alerts | https://docs.linuxgsm.com/alerts/email
  35. emailalert="off"
  36. email="email@example.com"
  37. emailfrom=""
  38. # Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
  39. gotifyalert="off"
  40. gotifytoken="token"
  41. gotifywebhook="webhook"
  42. # IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
  43. iftttalert="off"
  44. ifttttoken="accesstoken"
  45. iftttevent="linuxgsm_alert"
  46. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  47. pushbulletalert="off"
  48. pushbullettoken="accesstoken"
  49. channeltag=""
  50. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  51. pushoveralert="off"
  52. pushovertoken="accesstoken"
  53. pushoveruserkey="userkey"
  54. # Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
  55. rocketchatalert="off"
  56. rocketchatwebhook="webhook"
  57. # Slack Alerts | https://docs.linuxgsm.com/alerts/slack
  58. slackalert="off"
  59. slackwebhook="webhook"
  60. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  61. # You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
  62. # For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all".
  63. telegramapi="api.telegram.org"
  64. telegramalert="off"
  65. telegramtoken="accesstoken"
  66. telegramchatid=""
  67. telegramthreadid=""
  68. telegramsilentnotification="false"
  69. curlcustomstring=""
  70. ## Updating | https://docs.linuxgsm.com/commands/update
  71. updateonstart="off"
  72. ## Backup | https://docs.linuxgsm.com/commands/backup
  73. maxbackups="4"
  74. maxbackupdays="30"
  75. stoponbackup="on"
  76. ## Logging | https://docs.linuxgsm.com/features/logging
  77. consolelogging="on"
  78. logdays="7"
  79. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  80. # Query delay time
  81. querydelay="1"
  82. ## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
  83. ansi="on"
  84. #### Advanced Settings ####
  85. ## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
  86. sleeptime="0.5"
  87. ## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
  88. # 1: tmux kill
  89. # 2: CTRL+c
  90. # 3: quit
  91. # 4: quit 120s
  92. # 5: stop
  93. # 6: q
  94. # 7: exit
  95. # 8: 7 Days to Die
  96. # 9: GoldSrc
  97. # 10: Avorion
  98. # 11: end
  99. stopmode="2"
  100. ## Query mode
  101. # 1: session only
  102. # 2: gamedig (gsquery fallback)
  103. # 3: gamedig
  104. # 4: gsquery
  105. # 5: tcp
  106. querymode="1"
  107. querytype=""
  108. ## Console type
  109. consoleverbose="yes"
  110. consoleinteract="yes"
  111. ## Game Server Details
  112. # Do not edit
  113. gamename="Factorio"
  114. engine="factorio"
  115. glibc="2.18"
  116. #### Directories ####
  117. # Edit with care
  118. ## Game Server Directories
  119. systemdir="${serverfiles}"
  120. executabledir="${serverfiles}/bin/x64"
  121. executable="./factorio"
  122. servercfgdir="${systemdir}/data"
  123. servercfg="${selfname}.json"
  124. servercfgdefault="server-settings.json"
  125. servercfgfullpath="${servercfgdir}/${servercfg}"
  126. ## Backup Directory
  127. backupdir="${lgsmdir}/backup"
  128. ## Logging Directories
  129. [ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
  130. gamelogdir="${serverfiles}"
  131. lgsmlogdir="${logdir}/script"
  132. consolelogdir="${logdir}/console"
  133. lgsmlog="${lgsmlogdir}/${selfname}-script.log"
  134. consolelog="${consolelogdir}/${selfname}-console.log"
  135. alertlog="${lgsmlogdir}/${selfname}-alert.log"
  136. postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
  137. ## Logs Naming
  138. lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  139. consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  140. ## Log Parameters
  141. logtimestamp="off"
  142. logtimestampformat="%Y-%m-%d %H:%M:%S"