_default.cfg 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. ##################################
  2. ######## Default Settings ########
  3. ##################################
  4. # DO NOT EDIT 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. #### Server Settings ####
  9. ## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
  10. # More settings available after install in serverfiles/server/rust-server/server.cfg
  11. ip="0.0.0.0"
  12. port="28015"
  13. rconport="28016"
  14. rconpassword="CHANGE_ME"
  15. rconweb="1" # Value is: 1 for Facepunch's web panel; 0 for RCON tools like Rusty or Rustadmin
  16. servername="Rust"
  17. maxplayers="50"
  18. # Advanced Start Settings
  19. seed="" # default random; range : 1 to 2147483647 ; used to change or reproduce a procedural map
  20. salt="" # default random; range : unknown range ; used to recover a known setting from an existing map
  21. worldsize="3000" # default 3000; range : 1000 to 6000 ; map size in meters
  22. saveinterval="300" # Auto-save in seconds
  23. tickrate="30" # default 30; range : 15 to 100
  24. ## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
  25. fn_parms(){
  26. # Specific to Rust
  27. if [ -n "${seed}" ]; then
  28. # If set, then add to start parms
  29. conditionalseed="+server.seed ${seed}"
  30. else
  31. # Keep randomness of the number if not set
  32. conditionalseed=""
  33. fi
  34. if [ -n "${salt}" ]; then
  35. # If set, then add to start parms
  36. conditionalsalt="+server.salt ${salt}"
  37. else
  38. # Keep randomness of the number if not set
  39. conditionalsalt=""
  40. fi
  41. parms="-batchmode +server.ip ${ip} +server.port ${port} +server.tickrate ${tickrate} +server.hostname \"${servername}\" +server.identity \"${servicename}\" ${conditionalseed} ${conditionalsalt} +server.maxplayers ${maxplayers} +server.worldsize ${worldsize} +server.saveinterval ${saveinterval} +rcon.web ${rconweb} +rcon.ip ${ip} +rcon.port ${rconport} +rcon.password \"${rconpassword}\" -logfile \"${gamelogdate}\""
  42. }
  43. #### LinuxGSM Settings ####
  44. ## Notification Alerts
  45. # (on|off)
  46. # Display IP | https://docs.linuxgsm.com/alerts#display-ip
  47. displayip=""
  48. # More info | https://docs.linuxgsm.com/alerts#more-info
  49. postalert="off"
  50. postdays="7"
  51. posttarget="https://hastebin.com"
  52. # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
  53. discordalert="off"
  54. discordwebhook="webhook"
  55. # Email Alerts | https://docs.linuxgsm.com/alerts/email
  56. emailalert="off"
  57. email="email@example.com"
  58. emailfrom=""
  59. # IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
  60. iftttalert="off"
  61. ifttttoken="accesstoken"
  62. iftttevent="linuxgsm_alert"
  63. # Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
  64. mailgunalert="off"
  65. mailguntoken="accesstoken"
  66. mailgundomain="example.com"
  67. mailgunemailfrom="alert@example.com"
  68. mailgunemail="email@myemail.com"
  69. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  70. pushbulletalert="off"
  71. pushbullettoken="accesstoken"
  72. channeltag=""
  73. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  74. pushoveralert="off"
  75. pushovertoken="accesstoken"
  76. # Slack Alerts | https://docs.linuxgsm.com/alerts/slack
  77. slackalert="off"
  78. slackwebhook="webhook"
  79. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  80. # You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
  81. # like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
  82. # any custom string in curl - simple ignore this parameter.
  83. telegramalert="off"
  84. telegramtoken="accesstoken"
  85. telegramchatid=""
  86. curlcustomstring=""
  87. ## Updating | https://docs.linuxgsm.com/commands/update
  88. updateonstart="off"
  89. ## Backup | https://docs.linuxgsm.com/commands/backup
  90. maxbackups="4"
  91. maxbackupdays="30"
  92. stoponbackup="on"
  93. ## Logging | https://docs.linuxgsm.com/features/logging
  94. consolelogging="on"
  95. logdays="7"
  96. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  97. # Query delay time
  98. querydelay="1"
  99. #### LinuxGSM Advanced Settings ####
  100. # ANSI Colors
  101. ansi="on"
  102. # Message Display Time
  103. sleeptime="0.5"
  104. ## SteamCMD Settings
  105. # Server appid
  106. appid="258550"
  107. # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
  108. branch=""
  109. # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
  110. steammaster="false"
  111. # Stop Mode | https://docs.linuxgsm.com/steamcmd/stopmode
  112. # 1: tmux kill
  113. # 2: CTRL+c
  114. # 3: quit
  115. # 4: quit 120s
  116. # 5: stop
  117. # 6: q
  118. # 7: exit
  119. # 8: 7 Days to Die
  120. # 9: Gold Source
  121. # 10: Teamspeak 3
  122. stopmode="3"
  123. ## LinuxGSM Server Details
  124. # Do not edit
  125. gamename="Rust"
  126. engine="unity3d"
  127. glibc="2.15"
  128. #### Directories ####
  129. # Edit with care
  130. ## Server Specific Directories
  131. systemdir="${serverfiles}"
  132. executabledir="${serverfiles}"
  133. executable="./RustDedicated"
  134. serveridentitydir="${systemdir}/server/${servicename}"
  135. servercfg="server.cfg"
  136. servercfgdefault="server.cfg"
  137. servercfgdir="${serveridentitydir}/cfg"
  138. servercfgfullpath="${servercfgdir}/${servercfg}"
  139. ## Backup Directory
  140. backupdir="${lgsmdir}/backup"
  141. ## Logging Directories
  142. logdir="${rootdir}/log"
  143. gamelogdir="${logdir}/server"
  144. lgsmlogdir="${logdir}/script"
  145. consolelogdir="${logdir}/console"
  146. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  147. consolelog="${consolelogdir}/${servicename}-console.log"
  148. alertlog="${lgsmlogdir}/${servicename}-alert.log"
  149. postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
  150. ## Logs Naming
  151. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  152. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  153. gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"