_default.cfg 4.6 KB

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