_default.cfg 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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://github.com/GameServerManagers/LinuxGSM/wiki/SteamCMD#steamcmd-login
  10. steamuser="username"
  11. steampass='password'
  12. ## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
  13. ip="0.0.0.0"
  14. port="27015"
  15. defaultmap="ns2_summit"
  16. maxplayers="24"
  17. servername="NS2 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://github.com/GameServerManagers/LinuxGSM/wiki/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://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
  34. postalert="off"
  35. postdays="7"
  36. posttarget="https://hastebin.com"
  37. # Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
  38. discordalert="off"
  39. discordwebhook="webhook"
  40. # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
  41. emailalert="off"
  42. email="email@example.com"
  43. emailfrom=""
  44. # IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
  45. iftttalert="off"
  46. ifttttoken="accesstoken"
  47. iftttevent="linuxgsm_alert"
  48. # Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/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://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
  55. pushbulletalert="off"
  56. pushbullettoken="accesstoken"
  57. channeltag=""
  58. # Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
  59. pushoveralert="off"
  60. pushovertoken="accesstoken"
  61. # Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
  62. telegramalert="off"
  63. telegramtoken="accesstoken"
  64. telegramchatid=""
  65. ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
  66. updateonstart="off"
  67. ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
  68. maxbackups="4"
  69. maxbackupdays="30"
  70. stoponbackup="on"
  71. ## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
  72. consolelogging="on"
  73. logdays="7"
  74. #### LinuxGSM Advanced Settings ####
  75. ## SteamCMD Settings
  76. # Server appid
  77. appid="4940"
  78. # Steam App Branch Select
  79. # Allows to opt into the various Steam app branches. Default branch is "".
  80. # Example: "-beta latest_experimental"
  81. branch=""
  82. ## LinuxGSM Server Details
  83. # Do not edit
  84. gamename="Natural Selection 2"
  85. engine="spark"
  86. #### Directories ####
  87. # Edit with care
  88. ## Server Specific Directories
  89. systemdir="${serverfiles}"
  90. executabledir="${serverfiles}/x64"
  91. executable="./server_linux"
  92. servercfgdir="${serverfiles}/${servicename}"
  93. servercfgfullpath="${servercfgdir}"
  94. modstoragedir="${servercfgdir}/Workshop"
  95. ## Backup Directory
  96. backupdir="${rootdir}/backups"
  97. ## Logging Directories
  98. logdir="${rootdir}/log"
  99. gamelogdir="${systemdir}/logs"
  100. lgsmlogdir="${logdir}/script"
  101. consolelogdir="${logdir}/console"
  102. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  103. consolelog="${consolelogdir}/${servicename}-console.log"
  104. alertlog="${lgsmlogdir}/${servicename}-alert.log"
  105. postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
  106. ## Logs Naming
  107. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  108. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"