_default.cfg 3.4 KB

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