_default.cfg 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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 | https://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers
  19. # To get an API key visit - https://steamcommunity.com/dev/apikey
  20. wsapikey=""
  21. wscollectionid=""
  22. ## Custom Start Parameters
  23. # Default +r_hunkalloclightmaps 0, fixes a start issue on maps with many lights
  24. # Default -disableluarefresh, disables lua autorefresh reducing server lag. Auto refresh only useful for developers.
  25. customparms="+r_hunkalloclightmaps 0 -disableluarefresh"
  26. ## Optional: Game Server Login Token
  27. # GSLT can be used for running a public server.
  28. # More info: https://linuxgsm.com/gslt
  29. gslt=""
  30. ## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
  31. fn_parms(){
  32. parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickrate} +host_workshop_collection ${wscollectionid} -authkey ${wsapikey} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} ${customparms}"
  33. }
  34. #### LinuxGSM Settings ####
  35. ## Notification Alerts
  36. # (on|off)
  37. # More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
  38. postalert="off"
  39. postdays="7"
  40. posttarget="https://hastebin.com"
  41. # Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
  42. discordalert="off"
  43. discordwebhook="webhook"
  44. # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
  45. emailalert="off"
  46. email="email@example.com"
  47. emailfrom=""
  48. # IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
  49. iftttalert="off"
  50. ifttttoken="accesstoken"
  51. iftttevent="linuxgsm_alert"
  52. # Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
  53. mailgunalert="off"
  54. mailguntoken="accesstoken"
  55. mailgundomain="example.com"
  56. mailgunemailfrom="alert@example.com"
  57. mailgunemail="email@myemail.com"
  58. # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
  59. pushbulletalert="off"
  60. pushbullettoken="accesstoken"
  61. channeltag=""
  62. # Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
  63. pushoveralert="off"
  64. pushovertoken="accesstoken"
  65. # Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
  66. # You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
  67. # like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
  68. # any custom string in curl - simple ignore this parameter.
  69. telegramalert="off"
  70. telegramtoken="accesstoken"
  71. telegramchatid=""
  72. curlcustomstring=""
  73. ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
  74. updateonstart="off"
  75. ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
  76. maxbackups="4"
  77. maxbackupdays="30"
  78. stoponbackup="on"
  79. ## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
  80. consolelogging="on"
  81. logdays="7"
  82. #### LinuxGSM Advanced Settings ####
  83. ## SteamCMD Settings
  84. # Server appid
  85. appid="4020"
  86. # Steam App Branch Select
  87. # Allows to opt into the various Steam app branches. Default branch is "".
  88. # Example: "-beta latest_experimental"
  89. branch=""
  90. ## LinuxGSM Server Details
  91. # Do not edit
  92. gamename="Garry's Mod"
  93. engine="source"
  94. #### Directories ####
  95. # Edit with care
  96. ## Server Specific Directories
  97. systemdir="${serverfiles}/garrysmod"
  98. addonsdir="${systemdir}/addons"
  99. executabledir="${serverfiles}"
  100. executable="./srcds_run"
  101. servercfg="${servicename}.cfg"
  102. servercfgdefault="server.cfg"
  103. servercfgdir="${systemdir}/cfg"
  104. servercfgfullpath="${servercfgdir}/${servercfg}"
  105. ## Backup Directory
  106. backupdir="${rootdir}/backups"
  107. ## Logging Directories
  108. logdir="${rootdir}/log"
  109. gamelogdir="${systemdir}/logs"
  110. lgsmlogdir="${logdir}/script"
  111. consolelogdir="${logdir}/console"
  112. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  113. consolelog="${consolelogdir}/${servicename}-console.log"
  114. alertlog="${lgsmlogdir}/${servicename}-alert.log"
  115. postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
  116. ## Logs Naming
  117. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  118. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"