_default.cfg 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. # More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
  36. postalert="off"
  37. postdays="7"
  38. posttarget="https://hastebin.com"
  39. # Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
  40. discordalert="off"
  41. discordwebhook="webhook"
  42. # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
  43. emailalert="off"
  44. email="email@example.com"
  45. emailfrom=""
  46. # IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
  47. iftttalert="off"
  48. ifttttoken="accesstoken"
  49. iftttevent="linuxgsm_alert"
  50. # Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
  51. mailgunalert="off"
  52. mailguntoken="accesstoken"
  53. mailgundomain="example.com"
  54. mailgunemailfrom="alert@example.com"
  55. mailgunemail="email@myemail.com"
  56. # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
  57. pushbulletalert="off"
  58. pushbullettoken="accesstoken"
  59. channeltag=""
  60. # Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
  61. pushoveralert="off"
  62. pushovertoken="accesstoken"
  63. # Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
  64. telegramalert="off"
  65. telegramtoken="accesstoken"
  66. telegramchatid=""
  67. ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
  68. updateonstart="off"
  69. ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
  70. maxbackups="4"
  71. maxbackupdays="30"
  72. stoponbackup="on"
  73. ## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
  74. consolelogging="on"
  75. logdays="7"
  76. #### LinuxGSM Advanced Settings ####
  77. ## SteamCMD Settings
  78. # Server appid
  79. appid="4020"
  80. # Steam App Branch Select
  81. # Allows to opt into the various Steam app branches. Default branch is "".
  82. # Example: "-beta latest_experimental"
  83. branch=""
  84. ## LinuxGSM Server Details
  85. # Do not edit
  86. gamename="Garry's Mod"
  87. engine="source"
  88. #### Directories ####
  89. # Edit with care
  90. ## Server Specific Directories
  91. systemdir="${serverfiles}/garrysmod"
  92. addonsdir="${systemdir}/addons"
  93. executabledir="${serverfiles}"
  94. executable="./srcds_run"
  95. servercfg="${servicename}.cfg"
  96. servercfgdefault="server.cfg"
  97. servercfgdir="${systemdir}/cfg"
  98. servercfgfullpath="${servercfgdir}/${servercfg}"
  99. ## Backup Directory
  100. backupdir="${rootdir}/backups"
  101. ## Logging Directories
  102. logdir="${rootdir}/log"
  103. gamelogdir="${systemdir}/logs"
  104. lgsmlogdir="${logdir}/script"
  105. consolelogdir="${logdir}/console"
  106. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  107. consolelog="${consolelogdir}/${servicename}-console.log"
  108. alertlog="${lgsmlogdir}/${servicename}-alert.log"
  109. postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
  110. ## Logs Naming
  111. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  112. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"