_default.cfg 4.3 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. ## 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. # 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="4940"
  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. ## LinuxGSM Server Details
  96. # Do not edit
  97. gamename="Natural Selection 2"
  98. engine="spark"
  99. glibc="2.17"
  100. #### Directories ####
  101. # Edit with care
  102. ## Server Specific Directories
  103. systemdir="${serverfiles}"
  104. executabledir="${serverfiles}/x64"
  105. executable="./server_linux"
  106. servercfgdir="${serverfiles}/${servicename}"
  107. servercfgfullpath="${servercfgdir}"
  108. modstoragedir="${servercfgdir}/Workshop"
  109. ## Backup Directory
  110. backupdir="${rootdir}/backups"
  111. ## Logging Directories
  112. logdir="${rootdir}/log"
  113. gamelogdir="${systemdir}/logs"
  114. lgsmlogdir="${logdir}/script"
  115. consolelogdir="${logdir}/console"
  116. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  117. consolelog="${consolelogdir}/${servicename}-console.log"
  118. alertlog="${lgsmlogdir}/${servicename}-alert.log"
  119. postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
  120. ## Logs Naming
  121. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  122. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"