_default.cfg 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
  10. ip="0.0.0.0"
  11. port="28960"
  12. defaultmap="mp_leningrad"
  13. maxplayers="20"
  14. ## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
  15. fn_parms(){
  16. parms="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 1 +set net_ip ${ip} +set net_port ${port} +set sv_maxclients ${maxplayers} +exec ${servercfg} +map ${defaultmap}"
  17. }
  18. #### LinuxGSM Settings ####
  19. ## Notification Alerts
  20. # (on|off)
  21. # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
  22. emailalert="off"
  23. email="email@example.com"
  24. emailfrom=""
  25. # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
  26. pushbulletalert="off"
  27. pushbullettoken="accesstoken"
  28. channeltag=""
  29. # Telegram Bot Alerts
  30. # Get an Bot API key from @botfather
  31. # The chat id is the User or channel name or an integer like so:
  32. # https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
  33. telegramalert="off"
  34. telegramapikey=""
  35. telegramchatid=""
  36. ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
  37. maxbackups="4"
  38. maxbackupdays="30"
  39. stoponbackup="on"
  40. ## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
  41. consolelogging="on"
  42. logdays="7"
  43. #### LinuxGSM Advanced Settings ####
  44. ## LinuxGSM Server Details
  45. # Do not edit
  46. gamename="Call of Duty 2"
  47. engine="iw2.0"
  48. #### Directories ####
  49. # Edit with care
  50. ## Server Specific Directories
  51. systemdir="${serverfiles}"
  52. executabledir="${serverfiles}"
  53. executable="./cod2_lnxded"
  54. servercfg="${servicename}.cfg"
  55. servercfgdefault="server.cfg"
  56. servercfgdir="${systemdir}/main"
  57. servercfgfullpath="${servercfgdir}/${servercfg}"
  58. ## Backup Directory
  59. backupdir="${rootdir}/backups"
  60. ## Logging Directories
  61. logdir="${rootdir}/log"
  62. gamelogdir="${serverfiles}/Logs"
  63. lgsmlogdir="${logdir}/script"
  64. consolelogdir="${logdir}/console"
  65. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  66. consolelog="${consolelogdir}/${servicename}-console.log"
  67. emaillog="${lgsmlogdir}/${servicename}-email.log"
  68. ## Logs Naming
  69. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  70. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"