_default.cfg 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  77. # You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
  78. # like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
  79. # any custom string in curl - simple ignore this parameter.
  80. telegramalert="off"
  81. telegramtoken="accesstoken"
  82. telegramchatid=""
  83. curlcustomstring=""
  84. ## Updating | https://docs.linuxgsm.com/commands/update
  85. updateonstart="off"
  86. ## Backup | https://docs.linuxgsm.com/commands/backup
  87. maxbackups="4"
  88. maxbackupdays="30"
  89. stoponbackup="on"
  90. ## Logging | https://docs.linuxgsm.com/features/logging
  91. consolelogging="on"
  92. logdays="7"
  93. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  94. # Query delay time
  95. querydelay="1"
  96. #### LinuxGSM Advanced Settings ####
  97. # ANSI Colors
  98. ansi="on"
  99. # Message Display Time
  100. sleeptime="0.5"
  101. ## SteamCMD Settings
  102. # Server appid
  103. appid="258550"
  104. # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
  105. branch=""
  106. # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
  107. steammaster="false"
  108. ## LinuxGSM Server Details
  109. # Do not edit
  110. gamename="Rust"
  111. engine="unity3d"
  112. glibc="2.15"
  113. #### Directories ####
  114. # Edit with care
  115. ## Server Specific Directories
  116. systemdir="${serverfiles}"
  117. executabledir="${serverfiles}"
  118. executable="./RustDedicated"
  119. serveridentitydir="${systemdir}/server/${servicename}"
  120. servercfg="server.cfg"
  121. servercfgdefault="server.cfg"
  122. servercfgdir="${serveridentitydir}/cfg"
  123. servercfgfullpath="${servercfgdir}/${servercfg}"
  124. ## Backup Directory
  125. backupdir="${rootdir}/backups"
  126. ## Logging Directories
  127. logdir="${rootdir}/log"
  128. gamelogdir="${logdir}/server"
  129. lgsmlogdir="${logdir}/script"
  130. consolelogdir="${logdir}/console"
  131. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  132. consolelog="${consolelogdir}/${servicename}-console.log"
  133. alertlog="${lgsmlogdir}/${servicename}-alert.log"
  134. postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
  135. ## Logs Naming
  136. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  137. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  138. gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"