_default.cfg 4.4 KB

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