_default.cfg 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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://github.com/GameServerManagers/LinuxGSM/wiki/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. worldsize="3000" # default 3000; range : 1000 to 6000 ; map size in meters
  21. saveinterval="300" # Auto-save in seconds
  22. tickrate="30" # default 30; range : 15 to 100
  23. ## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
  24. fn_parms(){
  25. parms="-batchmode +server.ip ${ip} +server.port ${port} +server.tickrate ${tickrate} +server.hostname \"${servername}\" +server.identity \"${servicename}\" ${conditionalseed} +server.maxplayers ${maxplayers} +server.worldsize ${worldsize} +server.saveinterval ${saveinterval} +rcon.web ${rconweb} +rcon.ip ${ip} +rcon.port ${rconport} +rcon.password \"${rconpassword}\" -logfile \"${gamelogdate}\""
  26. }
  27. # Specific to Rust
  28. if [ -n "${seed}" ]; then
  29. # If set, then add to start parms
  30. conditionalseed="+server.seed ${seed}"
  31. else
  32. # Keep randomness of the number if not set
  33. conditionalseed=""
  34. fi
  35. #### LinuxGSM Settings ####
  36. ## Notification Alerts
  37. # (on|off)
  38. # Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
  39. discordalert="off"
  40. discordwebhook="https://discordapp.com/api/webhooks/12345/abcd12345"
  41. # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
  42. emailalert="off"
  43. email="email@example.com"
  44. emailfrom=""
  45. # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
  46. pushbulletalert="off"
  47. pushbullettoken="accesstoken"
  48. channeltag=""
  49. ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
  50. updateonstart="off"
  51. ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
  52. maxbackups="4"
  53. maxbackupdays="30"
  54. stoponbackup="on"
  55. ## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
  56. consolelogging="on"
  57. logdays="7"
  58. #### LinuxGSM Advanced Settings ####
  59. ## SteamCMD Settings
  60. # Server appid
  61. appid="258550"
  62. # Steam App Branch Select
  63. # Allows to opt into the various Steam app branches. Default branch is "".
  64. # Example: "-beta latest_experimental"
  65. branch=""
  66. ## LinuxGSM Server Details
  67. # Do not edit
  68. gamename="Rust"
  69. engine="unity3d"
  70. #### Directories ####
  71. # Edit with care
  72. ## Server Specific Directories
  73. systemdir="${serverfiles}"
  74. executabledir="${serverfiles}"
  75. executable="./RustDedicated"
  76. serveridentitydir="${systemdir}/server/${servicename}"
  77. servercfg="server.cfg"
  78. servercfgdefault="server.cfg"
  79. servercfgdir="${serveridentitydir}/cfg"
  80. servercfgfullpath="${servercfgdir}/${servercfg}"
  81. ## Backup Directory
  82. backupdir="${rootdir}/backups"
  83. ## Logging Directories
  84. logdir="${rootdir}/log"
  85. gamelogdir="${logdir}/server"
  86. lgsmlogdir="${logdir}/script"
  87. consolelogdir="${logdir}/console"
  88. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  89. consolelog="${consolelogdir}/${servicename}-console.log"
  90. emaillog="${lgsmlogdir}/${servicename}-email.log"
  91. ## Logs Naming
  92. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  93. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  94. gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"