_default.cfg 4.6 KB

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