_default.cfg 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
  39. emailalert="off"
  40. email="email@example.com"
  41. emailfrom=""
  42. # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
  43. pushbulletalert="off"
  44. pushbullettoken="accesstoken"
  45. channeltag=""
  46. ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
  47. updateonstart="off"
  48. ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
  49. maxbackups="4"
  50. maxbackupdays="30"
  51. stoponbackup="on"
  52. ## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
  53. consolelogging="on"
  54. logdays="7"
  55. #### LinuxGSM Advanced Settings ####
  56. ## SteamCMD Settings
  57. # Server appid
  58. appid="258550"
  59. # Steam App Branch Select
  60. # Allows to opt into the various Steam app branches. Default branch is "".
  61. # Example: "-beta latest_experimental"
  62. branch=""
  63. ## LinuxGSM Server Details
  64. # Do not edit
  65. gamename="Rust"
  66. engine="unity3d"
  67. #### Directories ####
  68. # Edit with care
  69. ## Server Specific Directories
  70. systemdir="${serverfiles}"
  71. executabledir="${serverfiles}"
  72. executable="./RustDedicated"
  73. serveridentitydir="${systemdir}/server/${servicename}"
  74. servercfg="server.cfg"
  75. servercfgdefault="server.cfg"
  76. servercfgdir="${serveridentitydir}/cfg"
  77. servercfgfullpath="${servercfgdir}/${servercfg}"
  78. ## Backup Directory
  79. backupdir="${rootdir}/backups"
  80. ## Logging Directories
  81. logdir="${rootdir}/log"
  82. gamelogdir="${logdir}/server"
  83. lgsmlogdir="${logdir}/script"
  84. consolelogdir="${logdir}/console"
  85. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  86. consolelog="${consolelogdir}/${servicename}-console.log"
  87. emaillog="${lgsmlogdir}/${servicename}-email.log"
  88. ## Logs Naming
  89. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  90. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  91. gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"