_default.cfg 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. ##################################
  2. ######## Default Settings ########
  3. ##################################
  4. # DO NOT EDIT, ANY CHANGES 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. #### Game Server Settings ####
  9. ## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
  10. ip="0.0.0.0"
  11. port="27015"
  12. clientport="27005"
  13. sourcetvport="27020"
  14. defaultmap="de_dust2"
  15. maxplayers="16"
  16. ## Game Server Login Token (GSLT): Required
  17. # GSLT is required for running a public server.
  18. # More info: https://docs.linuxgsm.com/steamcmd/gslt
  19. gslt=""
  20. ## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
  21. fn_parms(){
  22. parms="-game cstrike -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
  23. }
  24. #### LinuxGSM Settings ####
  25. ## LinuxGSM Stats
  26. # Send useful stats to LinuxGSM developers.
  27. # https://docs.linuxgsm.com/configuration/linuxgsm-stats
  28. # (on|off)
  29. stats="off"
  30. ## Notification Alerts
  31. # (on|off)
  32. # Display IP | https://docs.linuxgsm.com/alerts#display-ip
  33. displayip=""
  34. # More info | https://docs.linuxgsm.com/alerts#more-info
  35. postalert="off"
  36. postdays="7"
  37. posttarget="https://termbin.com"
  38. # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
  39. discordalert="off"
  40. discordwebhook="webhook"
  41. # Email Alerts | https://docs.linuxgsm.com/alerts/email
  42. emailalert="off"
  43. email="email@example.com"
  44. emailfrom=""
  45. # IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
  46. iftttalert="off"
  47. ifttttoken="accesstoken"
  48. iftttevent="linuxgsm_alert"
  49. # Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
  50. mailgunalert="off"
  51. mailguntoken="accesstoken"
  52. mailgundomain="example.com"
  53. mailgunemailfrom="alert@example.com"
  54. mailgunemail="email@myemail.com"
  55. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  56. pushbulletalert="off"
  57. pushbullettoken="accesstoken"
  58. channeltag=""
  59. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  60. pushoveralert="off"
  61. pushovertoken="accesstoken"
  62. # Slack Alerts | https://docs.linuxgsm.com/alerts/slack
  63. slackalert="off"
  64. slackwebhook="webhook"
  65. # Telegram Alerts | https://docs.linuxgsm.com/alerts/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://docs.linuxgsm.com/commands/update
  74. updateonstart="off"
  75. ## Backup | https://docs.linuxgsm.com/commands/backup
  76. maxbackups="4"
  77. maxbackupdays="30"
  78. stoponbackup="on"
  79. ## Logging | https://docs.linuxgsm.com/features/logging
  80. consolelogging="on"
  81. logdays="7"
  82. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  83. # Query delay time
  84. querydelay="1"
  85. ## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
  86. ansi="on"
  87. #### Advanced Settings ####
  88. ## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
  89. sleeptime="0.5"
  90. ## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
  91. # Server appid
  92. appid="232330"
  93. # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
  94. branch=""
  95. # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
  96. steammaster="true"
  97. ## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
  98. # 1: tmux kill
  99. # 2: CTRL+c
  100. # 3: quit
  101. # 4: quit 120s
  102. # 5: stop
  103. # 6: q
  104. # 7: exit
  105. # 8: 7 Days to Die
  106. # 9: Gold Source
  107. # 10: Teamspeak 3
  108. stopmode="3"
  109. ## Query mode
  110. # 1: session only
  111. # 2: gamedig + gsquery
  112. # 3: gamedig
  113. # 4: gsquery
  114. # 5: tcp
  115. querymode="2"
  116. querytype="protocol-valve"
  117. ## Game Server Details
  118. # Do not edit
  119. gamename="Counter-Strike: Source"
  120. engine="source"
  121. glibc="2.3.6"
  122. #### Directories ####
  123. # Edit with care
  124. ## Game Server Directories
  125. systemdir="${serverfiles}/cstrike"
  126. executabledir="${serverfiles}"
  127. executable="./srcds_run"
  128. servercfgdir="${systemdir}/cfg"
  129. servercfg="${selfname}.cfg"
  130. servercfgdefault="server.cfg"
  131. servercfgfullpath="${servercfgdir}/${servercfg}"
  132. ## Backup Directory
  133. backupdir="${lgsmdir}/backup"
  134. ## Logging Directories
  135. logdir="${rootdir}/log"
  136. gamelogdir="${systemdir}/logs"
  137. lgsmlogdir="${logdir}/script"
  138. consolelogdir="${logdir}/console"
  139. lgsmlog="${lgsmlogdir}/${selfname}-script.log"
  140. consolelog="${consolelogdir}/${selfname}-console.log"
  141. alertlog="${lgsmlogdir}/${selfname}-alert.log"
  142. postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
  143. ## Logs Naming
  144. lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  145. consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"