Guest User

Untitled

a guest
Feb 20th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.13 KB | None | 0 0
  1. [multicraft]
  2. ## The daemon will run under this user (not used for Windows)
  3. user = root
  4. ## Directories created by Multicraft will have the owner set to
  5. ## the user and the group set to the webUser (not used for Windows)
  6. ## default: same as "user"
  7. webUser = apache
  8.  
  9. ## The daemon will listen on the following IP/port.
  10. ## 0.0.0.0 to listen on all available interfaces (all IPs). Note that
  11. ## you will have to use the "externalIp" setting below if you set this
  12. ## to 0.0.0.0 as the control panel needs to know where to connect.
  13. ip = 127.0.0.1
  14. port = 25465
  15.  
  16. ## If the external address is different from the listen address
  17. ## you can set the external address here. This setting will be saved
  18. ## to the DB and used by the control panel to connect to the daemon.
  19. ## default: same as "ip"
  20. #externalIp =
  21.  
  22. ## The connection password for daemon communication
  23. ## !! Change this when you set Multicraft to listen on a public IP !!
  24. ## The same password will have to be put in the panels "daemon.php"
  25. password = xxxxx
  26.  
  27. ## The daemon ID. Only used for reseller edition to assign servers to daemons
  28. ## Running multiple servers with the same IDs can cause unpredictable behavior
  29. ## Valid values: 1, 2, ..., 10
  30. id = 1
  31.  
  32. ## The database containing daemon
  33. ## default: sqlite:data.db (-> "baseDir"/"dataDir"/data.db)
  34. database = mysql:host=127.0.0.1;dbname=multicraft_daemon
  35. ## Example for MySQL connections:
  36. database = mysql:host=127.0.0.1;dbname=multicraft_daemon
  37. dbUser = xxxx
  38. dbPassword = xxxx
  39. #dbCharset = utf8
  40.  
  41. ## A name for this daemon, this is optional
  42. ## default: Multicraft Daemon
  43. #name =
  44.  
  45. ## The amount of memory available to this daemon. This setting mainly
  46. ## serves informational purpose for display in the control panel and
  47. ## for the API to decide if this daemon can still run more servers.
  48. ## 0 means undefined
  49. ## default: 0
  50. totalMemory = 2048
  51.  
  52. ## The base directory of the multicraft install. Relative to the users
  53. ## home directory or absolute. Must exist.
  54. ## default: multicraft (-> /home/"user"/multicraft)
  55. baseDir = /home/minecraft/multicraft
  56. ## The directory the daemon binaries reside in
  57. ## default: bin (-> "baseDir"/bin)
  58. daemonDir = bin
  59. ## The data directory. Contains the database, socket, log and
  60. ## must be accessible by the control panel user if using a SQLite DB
  61. ## default: data (-> "baseDir"/data)
  62. dataDir = data
  63. ## The directory jar files can be placed in
  64. ## default: jar (-> "baseDir"/jar)
  65. jarDir = jar
  66. ## The directory containing all the servers. Users can be given access
  67. ## to specific subdirectories containing their server data
  68. ## default: servers (-> "baseDir"/servers)
  69. serversDir = servers
  70. ## The following files contain daemon specific data.
  71. ## The paths specified are relative to "baseDir"
  72. pidFile = multicraft.pid
  73. logFile = multicraft.log
  74. licenseFile = multicraft.key
  75. scriptsFile = scripts.conf
  76.  
  77. ## Note that for all of the above settings where a file or directory is
  78. ## indicated you can also use absolute paths (/dir), home-relative
  79. ## paths (~/dir) or relative paths (./dir or ../dir). "dir" stands for
  80. ## the setting you're editing.
  81. ## When not using absolute/relative paths the setting is taken to be
  82. ## relative to the home directory of the user configured by the "user"
  83. ## setting.
  84. ## Examples:
  85. ## - Changing "baseDir" to ./multicraft will cause multicraft to search
  86. ## all the files in a subdirectory "multicraft" of the directory it's
  87. ## called from
  88. ## - Changing "logFile" to ~/multicraft.log will cause Multicraft to log
  89. ## everything to the file multicraft.log in the home directory of the
  90. ## user configured by the "user" setting
  91.  
  92. ## The maximum size of one logfile after which the log will be rotated
  93. ## default: 20971520 (20 MB)
  94. logSize = 20971520
  95.  
  96. ## The number of log files to keep (multicraft.log.1 ... multicraft.log.X)
  97. ## default: 9
  98. logCount = 9
  99.  
  100. ## Integrated FTP server settings
  101. [ftp]
  102. ## Wheter or not to enable the integrated FTP server, true/false
  103. ## default: true
  104. enabled = true
  105. ## IP to listen on for FTP connections, uncomment to use the same as
  106. ## for the daemon.
  107. ## 0.0.0.0 means listening on all available interfaces (all IPs)
  108. ## default: same as the "ip" setting for the daemon, see above
  109. ftpIp = 91.121.100.137
  110. ## See the descriptions of "externalIp" and "ip" for the daemon above
  111. ## default: same as "externalIp" if "ftpIp" is "0.0.0.0" otherwise "ftpIp"
  112. #ftpExternalIp =
  113. ## Port to listen on for incoming FTP connections. Change this to
  114. ## something else if you are already running an FTP server on this
  115. ## system.
  116. ## default: 21
  117. ftpPort = 21
  118. ## Regular expression matching files that can't be manipulated by
  119. ## users in any way. If you want users to be able to upload their own
  120. ## plugins instead of using the ones you provide for them you can
  121. ## just comment this option out.
  122. ## default: empty
  123. forbiddenFiles =
  124.  
  125. ## Minecraft default settings
  126. [minecraft]
  127. ## The default amount of reserved memory
  128. ## default: 1024
  129. memory = 1024
  130. ## The name of the java executable
  131. ## default: java
  132. java = java
  133. ## The jar file to use. This file will be looked for in the "base"
  134. ## directory as configured above
  135. ## default: minecraft_server.jar
  136. jar = minecraft_server.jar
  137.  
  138. ## Backup settings
  139. [backup]
  140. ## The command to run a backup. The following variables can be used:
  141. ## - {WORLD} The name of the world being backed up
  142. ## - {SERVER_DIR} The directory of the server (working directory)
  143. ## - {MULTICRAFT_DIR} The Multicraft base directory ("baseDir" above)
  144. ## - {BASE_DIR} The directory containing all the servers ("serversDir above")
  145. ## Note that the resulting files is expected to be named "{WORLD}-tmp.zip"
  146. command = zip -r "{WORLD}-tmp.zip" "{WORLD}" &> /dev/null
  147. ## The same setting for Windows systems
  148. commandWin = "{MULTICRAFT_DIR}\bin\zip.exe" -r "{WORLD}-tmp.zip" "{WORLD}" 1> nul 2> nul
  149.  
  150. ## System settings
  151. [system]
  152. ## Most of the settings below are for Linux only
  153.  
  154. ## The script that is run just before calling the Minecraft server.
  155. ## Prepares the process and the server files.
  156. prepareScript = scripts/prepare.sh
  157.  
  158. ## Whether or not to use one system user per Minecraft server.
  159. ## This is recommended if you let your users upload untrusted executables.
  160. ## Note that for every server a new system user is automatically created
  161. ## if this option is enabled (user name format and commands configured below).
  162. ## default: false
  163. multiuser = true
  164.  
  165. ## The name format for new users, the following variables can be used:
  166. ## - {ID} The server ID
  167. ## default: mc{ID}
  168. userFormat = mc{ID}
  169.  
  170. ## The commands to create and delete system users and groups
  171. ## The following variables can be used:
  172. ## - {USER} The full user/groupname
  173. ## - {ID} The server ID
  174. ## - {DIR} The server base directory, used as the users home
  175. addUser = useradd -c "Multicraft Server {ID}" -d "{DIR}" -g "{USER}" -s /bin/false "{USER}"
  176. addGroup = groupadd "{USER}"
  177. delUser = userdel "{USER}"
  178. delGroup = groupdel "{USER}"
  179.  
  180. ## The command to unpack a zip file. The following variables can be used:
  181. ## - {FILE} The name of the zip archive to restore
  182. unpackCmd = unzip -uo "{FILE}" &> /dev/null
  183. ## The same setting for Windows systems
  184. unpackCmdWin = "{MULTICRAFT_DIR}\bin\unzip.exe" -uo "{FILE}" 1> nul 2> nul
Add Comment
Please, Sign In to add comment