_default.cfg 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. # More info | https://docs.linuxgsm.com/alerts#more-info
  34. postalert="off"
  35. postdays="7"
  36. posttarget="https://hastebin.com"
  37. # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
  38. discordalert="off"
  39. discordwebhook="webhook"
  40. # Email Alerts | https://docs.linuxgsm.com/alerts/email
  41. emailalert="off"
  42. email="email@example.com"
  43. emailfrom=""
  44. # IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
  45. iftttalert="off"
  46. ifttttoken="accesstoken"
  47. iftttevent="linuxgsm_alert"
  48. # Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
  49. mailgunalert="off"
  50. mailguntoken="accesstoken"
  51. mailgundomain="example.com"
  52. mailgunemailfrom="alert@example.com"
  53. mailgunemail="email@myemail.com"
  54. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  55. pushbulletalert="off"
  56. pushbullettoken="accesstoken"
  57. channeltag=""
  58. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  59. pushoveralert="off"
  60. pushovertoken="accesstoken"
  61. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  62. # You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
  63. # like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
  64. # any custom string in curl - simple ignore this parameter.
  65. telegramalert="off"
  66. telegramtoken="accesstoken"
  67. telegramchatid=""
  68. curlcustomstring=""
  69. ## Updating | https://docs.linuxgsm.com/commands/update
  70. updateonstart="off"
  71. ## Backup | https://docs.linuxgsm.com/commands/backup
  72. maxbackups="4"
  73. maxbackupdays="30"
  74. stoponbackup="on"
  75. ## Logging | https://docs.linuxgsm.com/features/logging
  76. consolelogging="on"
  77. logdays="7"
  78. #### LinuxGSM Advanced Settings ####
  79. # ANSI Colors
  80. ansi="on"
  81. ## SteamCMD Settings
  82. # Server appid
  83. appid="4940"
  84. # Steam App Branch Select
  85. # Allows to opt into the various Steam app branches. Default branch is "".
  86. # Example: "-beta latest_experimental"
  87. branch=""
  88. ## LinuxGSM Server Details
  89. # Do not edit
  90. gamename="Natural Selection 2"
  91. engine="spark"
  92. #### Directories ####
  93. # Edit with care
  94. ## Server Specific Directories
  95. systemdir="${serverfiles}"
  96. executabledir="${serverfiles}/x64"
  97. executable="./server_linux"
  98. servercfgdir="${serverfiles}/${servicename}"
  99. servercfgfullpath="${servercfgdir}"
  100. modstoragedir="${servercfgdir}/Workshop"
  101. ## Backup Directory
  102. backupdir="${rootdir}/backups"
  103. ## Logging Directories
  104. logdir="${rootdir}/log"
  105. gamelogdir="${systemdir}/logs"
  106. lgsmlogdir="${logdir}/script"
  107. consolelogdir="${logdir}/console"
  108. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  109. consolelog="${consolelogdir}/${servicename}-console.log"
  110. alertlog="${lgsmlogdir}/${servicename}-alert.log"
  111. postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
  112. ## Logs Naming
  113. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  114. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"