_default.cfg 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. # More info | https://docs.linuxgsm.com/alerts#more-info
  47. postalert="off"
  48. postdays="7"
  49. posttarget="https://hastebin.com"
  50. # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
  51. discordalert="off"
  52. discordwebhook="webhook"
  53. # Email Alerts | https://docs.linuxgsm.com/alerts/email
  54. emailalert="off"
  55. email="email@example.com"
  56. emailfrom=""
  57. # IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
  58. iftttalert="off"
  59. ifttttoken="accesstoken"
  60. iftttevent="linuxgsm_alert"
  61. # Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
  62. mailgunalert="off"
  63. mailguntoken="accesstoken"
  64. mailgundomain="example.com"
  65. mailgunemailfrom="alert@example.com"
  66. mailgunemail="email@myemail.com"
  67. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  68. pushbulletalert="off"
  69. pushbullettoken="accesstoken"
  70. channeltag=""
  71. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  72. pushoveralert="off"
  73. pushovertoken="accesstoken"
  74. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  75. # You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
  76. # like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
  77. # any custom string in curl - simple ignore this parameter.
  78. telegramalert="off"
  79. telegramtoken="accesstoken"
  80. telegramchatid=""
  81. curlcustomstring=""
  82. ## Updating | https://docs.linuxgsm.com/commands/update
  83. updateonstart="off"
  84. ## Backup | https://docs.linuxgsm.com/commands/backup
  85. maxbackups="4"
  86. maxbackupdays="30"
  87. stoponbackup="on"
  88. ## Logging | https://docs.linuxgsm.com/features/logging
  89. consolelogging="on"
  90. logdays="7"
  91. #### LinuxGSM Advanced Settings ####
  92. # ANSI Colors
  93. ansi="on"
  94. # Message Display Time
  95. sleeptime="0.5"
  96. ## SteamCMD Settings
  97. # Server appid
  98. appid="258550"
  99. # Steam App Branch Select
  100. # Allows to opt into the various Steam app branches. Default branch is "".
  101. # Example: "-beta latest_experimental"
  102. branch=""
  103. ## LinuxGSM Server Details
  104. # Do not edit
  105. gamename="Rust"
  106. engine="unity3d"
  107. #### Directories ####
  108. # Edit with care
  109. ## Server Specific Directories
  110. systemdir="${serverfiles}"
  111. executabledir="${serverfiles}"
  112. executable="./RustDedicated"
  113. serveridentitydir="${systemdir}/server/${servicename}"
  114. servercfg="server.cfg"
  115. servercfgdefault="server.cfg"
  116. servercfgdir="${serveridentitydir}/cfg"
  117. servercfgfullpath="${servercfgdir}/${servercfg}"
  118. ## Backup Directory
  119. backupdir="${rootdir}/backups"
  120. ## Logging Directories
  121. logdir="${rootdir}/log"
  122. gamelogdir="${logdir}/server"
  123. lgsmlogdir="${logdir}/script"
  124. consolelogdir="${logdir}/console"
  125. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  126. consolelog="${consolelogdir}/${servicename}-console.log"
  127. alertlog="${lgsmlogdir}/${servicename}-alert.log"
  128. postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
  129. ## Logs Naming
  130. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  131. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  132. gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"