_default.cfg 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. # https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers#Starting_the_Server
  11. # [Game Modes] gametype gamemode
  12. # Arms Race 1 0
  13. # Classic Casual 0 0
  14. # Classic Competitive 0 1
  15. # Custom 3 0
  16. # Deathmatch 1 2
  17. # Demolition 1 1
  18. gametype="0"
  19. gamemode="0"
  20. mapgroup="mg_active"
  21. ip="0.0.0.0"
  22. port="27015"
  23. clientport="27005"
  24. sourcetvport="27020"
  25. defaultmap="de_mirage"
  26. maxplayers="16"
  27. tickrate="64"
  28. ## Required: Game Server Login Token
  29. # GSLT is required for running a public server.
  30. # More info: https://gameservermanagers.com/gslt
  31. gslt=""
  32. ## Optional: Workshop Parameters
  33. # https://developer.valvesoftware.com/wiki/CSGO_Workshop_For_Server_Operators
  34. # To get an authkey visit - http://steamcommunity.com/dev/apikey
  35. authkey=""
  36. ws_collection_id=""
  37. ws_start_map=""
  38. ## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
  39. fn_parms(){
  40. parms="-game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers_override ${maxplayers} +mapgroup ${mapgroup} +game_mode ${gamemode} +game_type ${gametype} +host_workshop_collection ${ws_collection_id} +workshop_start_map ${ws_start_map} -authkey ${authkey} -nobreakpad"
  41. }
  42. #### LinuxGSM Settings ####
  43. ## Notification Alerts
  44. # (on|off)
  45. # More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
  46. postalert="off"
  47. postdays="7"
  48. posttarget="https://hastebin.com"
  49. # Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
  50. discordalert="off"
  51. discordwebhook="webhook"
  52. # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
  53. emailalert="off"
  54. email="email@example.com"
  55. emailfrom=""
  56. # IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
  57. iftttalert="off"
  58. ifttttoken="accesstoken"
  59. iftttevent="linuxgsm_alert"
  60. # Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
  61. mailgunalert="off"
  62. mailguntoken="accesstoken"
  63. mailgundomain="example.com"
  64. mailgunemailfrom="alert@example.com"
  65. mailgunemail="email@myemail.com"
  66. # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
  67. pushbulletalert="off"
  68. pushbullettoken="accesstoken"
  69. channeltag=""
  70. # Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
  71. pushoveralert="off"
  72. pushovertoken="accesstoken"
  73. # Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
  74. telegramalert="off"
  75. telegramtoken="accesstoken"
  76. telegramchatid=""
  77. ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
  78. updateonstart="off"
  79. ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
  80. maxbackups="4"
  81. maxbackupdays="30"
  82. stoponbackup="on"
  83. ## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
  84. consolelogging="on"
  85. logdays="7"
  86. #### LinuxGSM Advanced Settings ####
  87. ## SteamCMD Settings
  88. # Server appid
  89. appid="740"
  90. # Steam App Branch Select
  91. # Allows to opt into the various Steam app branches. Default branch is "".
  92. # Example: "-beta latest_experimental"
  93. branch=""
  94. ## LinuxGSM Server Details
  95. # Do not edit
  96. gamename="Counter-Strike: Global Offensive"
  97. engine="source"
  98. #### Directories ####
  99. # Edit with care
  100. ## Server Specific Directories
  101. systemdir="${serverfiles}/csgo"
  102. executabledir="${serverfiles}"
  103. executable="./srcds_run"
  104. servercfg="${servicename}.cfg"
  105. servercfgdefault="server.cfg"
  106. servercfgdir="${systemdir}/cfg"
  107. servercfgfullpath="${servercfgdir}/${servercfg}"
  108. ## Backup Directory
  109. backupdir="${lgsmdir}/backup"
  110. ## Logging Directories
  111. logdir="${rootdir}/log"
  112. gamelogdir="${systemdir}/logs"
  113. lgsmlogdir="${logdir}/script"
  114. consolelogdir="${logdir}/console"
  115. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  116. consolelog="${consolelogdir}/${servicename}-console.log"
  117. alertlog="${lgsmlogdir}/${servicename}-alert.log"
  118. postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
  119. ## Logs Naming
  120. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  121. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"