_default.cfg 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. # Telegram Bot Alerts
  47. # Get an Bot API key from @botfather
  48. # The chat id is the User or channel name or an integer like so:
  49. # https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
  50. telegramalert="off"
  51. telegramtoken=""
  52. telegramchatid=""
  53. ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
  54. updateonstart="off"
  55. ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
  56. maxbackups="4"
  57. maxbackupdays="30"
  58. stoponbackup="on"
  59. ## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
  60. consolelogging="on"
  61. logdays="7"
  62. #### LinuxGSM Advanced Settings ####
  63. ## SteamCMD Settings
  64. # Server appid
  65. appid="258550"
  66. # Steam App Branch Select
  67. # Allows to opt into the various Steam app branches. Default branch is "".
  68. # Example: "-beta latest_experimental"
  69. branch=""
  70. ## LinuxGSM Server Details
  71. # Do not edit
  72. gamename="Rust"
  73. engine="unity3d"
  74. #### Directories ####
  75. # Edit with care
  76. ## Server Specific Directories
  77. systemdir="${serverfiles}"
  78. executabledir="${serverfiles}"
  79. executable="./RustDedicated"
  80. serveridentitydir="${systemdir}/server/${servicename}"
  81. servercfg="server.cfg"
  82. servercfgdefault="server.cfg"
  83. servercfgdir="${serveridentitydir}/cfg"
  84. servercfgfullpath="${servercfgdir}/${servercfg}"
  85. ## Backup Directory
  86. backupdir="${rootdir}/backups"
  87. ## Logging Directories
  88. logdir="${rootdir}/log"
  89. gamelogdir="${logdir}/server"
  90. lgsmlogdir="${logdir}/script"
  91. consolelogdir="${logdir}/console"
  92. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  93. consolelog="${consolelogdir}/${servicename}-console.log"
  94. emaillog="${lgsmlogdir}/${servicename}-email.log"
  95. ## Logs Naming
  96. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  97. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
  98. gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"