_default.cfg 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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://docs.linuxgsm.com/configuration/start-parameters
  10. ip="0.0.0.0"
  11. port="34197"
  12. rconport="34198"
  13. rconpassword="CHANGE_ME"
  14. # (stable|experimental)
  15. branch="stable"
  16. ## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
  17. fn_parms(){
  18. parms="--start-server ${serverfiles}/save1.zip --server-settings ${servercfgfullpath} --port ${port} --rcon-port ${rconport} --rcon-password ${rconpassword}"
  19. }
  20. #### LinuxGSM Settings ####
  21. ## Notification Alerts
  22. # (on|off)
  23. # Display IP | https://docs.linuxgsm.com/alerts#display-ip
  24. displayip=""
  25. # More info | https://docs.linuxgsm.com/alerts#more-info
  26. postalert="off"
  27. postdays="7"
  28. posttarget="https://hastebin.com"
  29. # Discord Alerts | https://docs.linuxgsm.com/alerts/discord
  30. discordalert="off"
  31. discordwebhook="webhook"
  32. # Email Alerts | https://docs.linuxgsm.com/alerts/email
  33. emailalert="off"
  34. email="email@example.com"
  35. emailfrom=""
  36. # IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
  37. iftttalert="off"
  38. ifttttoken="accesstoken"
  39. iftttevent="linuxgsm_alert"
  40. # Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
  41. mailgunalert="off"
  42. mailguntoken="accesstoken"
  43. mailgundomain="example.com"
  44. mailgunemailfrom="alert@example.com"
  45. mailgunemail="email@myemail.com"
  46. # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
  47. pushbulletalert="off"
  48. pushbullettoken="accesstoken"
  49. channeltag=""
  50. # Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
  51. pushoveralert="off"
  52. pushovertoken="accesstoken"
  53. # Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
  54. # You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
  55. # like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
  56. # any custom string in curl - simple ignore this parameter.
  57. telegramalert="off"
  58. telegramtoken="accesstoken"
  59. telegramchatid=""
  60. curlcustomstring=""
  61. ## Updating | https://docs.linuxgsm.com/commands/update
  62. updateonstart="off"
  63. ## Backup | https://docs.linuxgsm.com/commands/backup
  64. maxbackups="4"
  65. maxbackupdays="30"
  66. stoponbackup="on"
  67. ## Logging | https://docs.linuxgsm.com/features/logging
  68. consolelogging="on"
  69. logdays="7"
  70. ## Monitor | https://docs.linuxgsm.com/commands/monitor
  71. # Query delay time
  72. querydelay="1"
  73. #### LinuxGSM Advanced Settings ####
  74. # ANSI Colors
  75. ansi="on"
  76. # Message Display Time
  77. sleeptime="0.5"
  78. ## LinuxGSM Server Details
  79. # Do not edit
  80. gamename="Factorio"
  81. engine="factorio"
  82. glibc="2.18"
  83. #### Directories ####
  84. # Edit with care
  85. ## Server Specific Directories
  86. systemdir="${serverfiles}"
  87. executabledir="${serverfiles}/bin/x64"
  88. executable="./factorio"
  89. servercfg="${servicename}.json"
  90. servercfgdefault="server-settings.json"
  91. servercfgdir="${serverfiles}/data"
  92. servercfgfullpath="${servercfgdir}/${servercfg}"
  93. ## Backup Directory
  94. backupdir="${rootdir}/backups"
  95. ## Logging Directories
  96. gamelogdir="${serverfiles}"
  97. lgsmlogdir="${logdir}/script"
  98. consolelogdir="${logdir}/console"
  99. lgsmlog="${lgsmlogdir}/${servicename}-script.log"
  100. consolelog="${consolelogdir}/${servicename}-console.log"
  101. alertlog="${lgsmlogdir}/${servicename}-alert.log"
  102. postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
  103. ## Logs Naming
  104. lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
  105. consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"