_default.cfg 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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://docs.linuxgsm.com/configuration/start-parameters
  10. ip="0.0.0.0"
  11. port="27015"
  12. defaultmap="co_core"
  13. maxplayers="24"
  14. servername="LinuxGSM Server"
  15. webadminuser="admin"
  16. webadminpass="admin"
  17. webadminport="8080"
  18. mods=""
  19. serverpassword=""
  20. # Add the following line to the parms if you want a private server. Ensuring
  21. # that the password variable above is not left empty.
  22. # -password \"${serverpassword}\"
  23. ## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
  24. fn_parms(){
  25. parms="-name \"${servername}\" -port ${port} -webadmin -webdomain ${ip} -webuser ${webadminuser} -webpassword \"${webadminpass}\" -webport ${webadminport} -map ${defaultmap} -limit ${maxplayers} -config_path \"${servercfgdir}\" -modstorage \"${modstoragedir}\" -mods \"${mods}\""
  26. }
  27. #### LinuxGSM Settings ####
  28. ## Notification Alerts
  29. # (on|off)
  30. # Display IP | https://docs.linuxgsm.com/alerts#display-ip
  31. displayip=""
  32. # More info | https://docs.linuxgsm.com/alerts#more-info
  33. postalert="off"
  34. postdays="7"
  35. posttarget="https://hastebin.com"
  36. # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
  37. discordalert="off"
  38. discordwebhook="webhook"
  39. # Email Alerts | https://docs.linuxgsm.com/alerts/email
  40. emailalert="off"
  41. email="email@example.com"
  42. emailfrom=""
  43. # IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
  44. iftttalert="off"
  45. ifttttoken="accesstoken"
  46. iftttevent="linuxgsm_alert"
  47. # Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
  48. mailgunalert="off"
  49. mailguntoken="accesstoken"
  50. mailgundomain="example.com"
  51. mailgunemailfrom="alert@example.com"
  52. mailgunemail="email@myemail.com"
  53. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  54. pushbulletalert="off"
  55. pushbullettoken="accesstoken"
  56. channeltag=""
  57. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  58. pushoveralert="off"
  59. pushovertoken="accesstoken"
  60. # Slack Alerts | https://docs.linuxgsm.com/alerts/slack
  61. slackalert="off"
  62. slackwebhook="webhook"
  63. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  64. # You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
  65. # like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
  66. # any custom string in curl - simple ignore this parameter.
  67. telegramalert="off"
  68. telegramtoken="accesstoken"
  69. telegramchatid=""
  70. curlcustomstring=""
  71. ## Updating | https://docs.linuxgsm.com/commands/update
  72. updateonstart="off"
  73. ## Backup | https://docs.linuxgsm.com/commands/backup
  74. maxbackups="4"
  75. maxbackupdays="30"
  76. stoponbackup="on"
  77. ## Logging | https://docs.linuxgsm.com/features/logging
  78. consolelogging="on"
  79. logdays="7"
  80. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  81. # Query delay time
  82. querydelay="1"
  83. #### LinuxGSM Advanced Settings ####
  84. # ANSI Colors
  85. ansi="on"
  86. # Message Display Time
  87. sleeptime="0.5"
  88. ## SteamCMD Settings
  89. # Server appid
  90. appid="313900"
  91. # SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
  92. branch=""
  93. # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
  94. steammaster="true"
  95. # Stop Mode | https://docs.linuxgsm.com/steamcmd/stopmode
  96. # 1: tmux kill
  97. # 2: CTRL+c
  98. # 3: quit
  99. # 4: quit 120s
  100. # 5: stop
  101. # 6: q
  102. # 7: exit
  103. # 8: 7 Days to Die
  104. # 9: Gold Source
  105. # 10: Teamspeak 3
  106. stopmode="6"
  107. ## LinuxGSM Server Details
  108. # Do not edit
  109. gamename="NS2: Combat"
  110. engine="spark"
  111. glibc="2.15"
  112. #### Directories ####
  113. # Edit with care
  114. ## Server Specific Directories
  115. systemdir="${serverfiles}"
  116. executabledir="${serverfiles}/ia32"
  117. executable="./ns2combatserver_linux32"
  118. servercfgdir="${serverfiles}/${servicename}"
  119. servercfgfullpath="${servercfgdir}"
  120. modstoragedir="${servercfgdir}/Workshop"
  121. ## Backup Directory
  122. backupdir="${lgsmdir}/backup"
  123. ## Logging Directories
  124. logdir="${rootdir}/log"
  125. gamelogdir="${systemdir}/logs"
  126. lgsmlogdir="${logdir}/script"
  127. consolelogdir="${logdir}/console"
  128. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  129. consolelog="${consolelogdir}/${servicename}-console.log"
  130. alertlog="${lgsmlogdir}/${servicename}-alert.log"
  131. postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
  132. ## Logs Naming
  133. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  134. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"