_default.cfg 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. ip="0.0.0.0"
  11. port="27015"
  12. clientport="27005"
  13. sourcetvport="27020"
  14. defaultmap="gm_construct"
  15. maxplayers="16"
  16. tickrate="66"
  17. gamemode="sandbox"
  18. ## Workshop Parameters | http://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers
  19. workshopauth=""
  20. workshopcollectionid=""
  21. ## Custom Start Parameters
  22. # Default +r_hunkalloclightmaps 0, fixes a start issue on maps with many lights
  23. customparms="+r_hunkalloclightmaps 0"
  24. ## Optional: Game Server Login Token
  25. # GSLT can be used for running a public server.
  26. # More info: https://gameservermanagers.com/gslt
  27. gslt=""
  28. ## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
  29. fn_parms(){
  30. parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickrate} +host_workshop_collection ${workshopcollectionid} -authkey ${workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} ${customparms}"
  31. }
  32. #### LinuxGSM Settings ####
  33. ## Notification Alerts
  34. # (on|off)
  35. # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
  36. emailalert="off"
  37. email="email@example.com"
  38. emailfrom=""
  39. # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
  40. pushbulletalert="off"
  41. pushbullettoken="accesstoken"
  42. channeltag=""
  43. ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
  44. updateonstart="off"
  45. ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
  46. maxbackups="4"
  47. maxbackupdays="30"
  48. stoponbackup="on"
  49. ## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
  50. consolelogging="on"
  51. logdays="7"
  52. #### LinuxGSM Advanced Settings ####
  53. ## SteamCMD Settings
  54. # Server appid
  55. appid="4020"
  56. # Steam App Branch Select
  57. # Allows to opt into the various Steam app branches. Default branch is "".
  58. # Example: "-beta latest_experimental"
  59. branch=""
  60. ## LinuxGSM Server Details
  61. # Do not edit
  62. gamename="Garry's Mod"
  63. engine="source"
  64. #### Directories ####
  65. # Edit with care
  66. ## Server Specific Directories
  67. systemdir="${serverfiles}/garrysmod"
  68. addonsdir="${systemdir}/addons"
  69. executabledir="${serverfiles}"
  70. executable="./srcds_run"
  71. servercfg="${servicename}.cfg"
  72. servercfgdefault="server.cfg"
  73. servercfgdir="${systemdir}/cfg"
  74. servercfgfullpath="${servercfgdir}/${servercfg}"
  75. ## Backup Directory
  76. backupdir="${rootdir}/backups"
  77. ## Logging Directories
  78. logdir="${rootdir}/log"
  79. gamelogdir="${systemdir}/logs"
  80. lgsmlogdir="${logdir}/script"
  81. consolelogdir="${logdir}/console"
  82. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  83. consolelog="${consolelogdir}/${servicename}-console.log"
  84. emaillog="${lgsmlogdir}/${servicename}-email.log"
  85. ## Logs Naming
  86. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  87. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"