Advertisement
Guest User

Untitled

a guest
May 5th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.31 KB | None | 0 0
  1. ## This is the main configuration file for the Multicraft daemon. Any change to
  2. ## this file requires a restart of the daemon.
  3. ## Lines with a '#' in front of them are disabled and will not have any effect.
  4. ## Remove the '#' to enable the setting.
  5. [multicraft]
  6. ## The daemon will run under this user (not used for Windows)
  7. user = minecraft:minecraft
  8. ## Directories created by Multicraft will have the owner set to
  9. ## the user and the group set to the webUser (not used for Windows)
  10. ## default: same as "user"
  11. webUser = www-data:www-data
  12.  
  13. ## The daemon will listen on the following IP/port.
  14. ## 0.0.0.0 to listen on all available interfaces (all IPs). Note that
  15. ## you will have to use the "externalIp" setting below if you set this
  16. ## to 0.0.0.0 as the control panel needs to know where to connect.
  17. ip = 127.0.0.1
  18. port = 25465
  19.  
  20. ## If the external address is different from the listen address
  21. ## you can set the external address here. This setting will be saved
  22. ## to the DB and used by the control panel to connect to the daemon.
  23. ## default: same as "ip"
  24. #externalIp =
  25.  
  26. ## The connection password for daemon communication
  27. ## !! Change this when you set Multicraft to listen on a public IP !!
  28. ## The same password will have to be used on the panel side in the file:
  29. ## protected/config/config.php
  30. password = standalone_daemon
  31.  
  32. ## Remote IP restrictions for daemon connections. This is a comma separated
  33. ## list of IPs that are allowed to connect to this daemon. Empty for all
  34. ## remote IPs allowed.
  35. ## default: empty
  36. #allowedIps = 127.0.0.1
  37.  
  38. ## The maximum number of daemon connections to allow to this daemon.
  39. ## default: 500
  40. #maxConnections = 500
  41.  
  42. ## The maximum number of daemon connections a single client can open.
  43. ## default: 50
  44. #maxClientConnections = 50
  45.  
  46.  
  47. ## The daemon ID, only the Dynamic license supports this setting.
  48. ## Running multiple servers with the same IDs can cause unpredictable behavior
  49. ## Valid values: 1, 2, ..., 65535
  50. #id = 1
  51.  
  52. ## The database containing daemon
  53. ## default: sqlite:data.db (-> "baseDir"/"dataDir"/data.db)
  54. database = sqlite:daemon.db
  55. ## Example for MySQL connections:
  56. #database = mysql:host=127.0.0.1;dbname=multicraft_daemon
  57. #dbUser = youruser
  58. #dbPassword = yourpassword
  59. #dbCharset = utf8
  60.  
  61. ## A name for this daemon, this is optional
  62. ## default: Multicraft Daemon
  63. #name =
  64.  
  65. ## The amount of memory available to this daemon in MB. This setting mainly
  66. ## serves informational purpose for display in the control panel and
  67. ## for the API to decide if this daemon can still run more servers.
  68. ## 0 means undefined
  69. ## default: 0
  70. #totalMemory =
  71.  
  72. ## The base directory of the multicraft install. Relative to the users
  73. ## home directory or absolute. Must exist.
  74. ## default: multicraft (-> /home/"user"/multicraft)
  75. baseDir = ./multicraft
  76. ## The directory the daemon binaries reside in
  77. ## default: bin (-> "baseDir"/bin)
  78. daemonDir = bin
  79. ## The data directory. Contains the database, socket, log and
  80. ## must be accessible by the control panel user if using a SQLite DB
  81. ## default: data (-> "baseDir"/data)
  82. dataDir = ./data
  83. ## The directory jar files can be placed in
  84. ## default: jar (-> "baseDir"/jar)
  85. jarDir = jar
  86. ## The directory containing all the servers. Users can be given access
  87. ## to specific subdirectories containing their server data
  88. ## default: servers (-> "baseDir"/servers)
  89. serversDir = servers
  90. ## The directory containing server templates
  91. ## default: templates (-> "baseDir"/templates)
  92. templatesDir = templates
  93. ## The following files contain daemon specific data.
  94. ## The paths specified are relative to "baseDir"
  95. pidFile = multicraft.pid
  96. logFile = multicraft.log
  97. licenseFile = multicraft.key
  98. scriptsFile = scripts.conf
  99. ## This file defines the config file to use depending on the executable name
  100. configsFile = server_configs.conf
  101. ## This config file contains the default server configuration. It is not
  102. ## in the "jar" directory so it does not get listed as a selection in the
  103. ## JAR File dropdown.
  104. defaultConfigFile = default_server.conf
  105.  
  106. ## Note that for all of the above settings where a file or directory is
  107. ## indicated you can also use absolute paths (/dir), home-relative
  108. ## paths (~/dir) or relative paths (./dir or ../dir). "dir" stands for
  109. ## the setting you're editing.
  110. ## When not using absolute/relative paths the setting is taken to be
  111. ## relative to the home directory of the user configured by the "user"
  112. ## setting.
  113. ## Examples:
  114. ## - Changing "baseDir" to ./multicraft will cause multicraft to search
  115. ## all the files in a subdirectory "multicraft" of the directory it's
  116. ## called from
  117. ## - Changing "logFile" to ~/multicraft.log will cause Multicraft to log
  118. ## everything to the file multicraft.log in the home directory of the
  119. ## user configured by the "user" setting
  120.  
  121. ## The maximum size of one logfile after which the log will be rotated
  122. ## default: 20971520 (20 MB)
  123. logSize = 20971520
  124.  
  125. ## The number of log files to keep (multicraft.log.1 ... multicraft.log.X)
  126. ## default: 9
  127. logCount = 9
  128.  
  129. ## Synchronize log writes. Disabling this will improve performance at the
  130. ## risk of having some log entries overlap.
  131. ## default: true
  132. #logSync = false
  133.  
  134. ## Use thesyslog facility instead of logging to a file.
  135. ## default: false
  136. #logSyslog = true
  137.  
  138. ## The syslog facility to log to. Possible values: auth, cron, daemon,
  139. ## kern, lpr, mail, news, security, syslog, user, uucp, local10-17
  140. ## default: daemon
  141. #logFacility = daemon
  142.  
  143. ## Log all commands the daemon receives from the panel
  144. ## default: false
  145. #logCommands = false
  146.  
  147. ## Log server console output to the log file under these conditions:
  148. ## always - Always log server console output
  149. ## startup - Only log server console output during server startup
  150. ## running - Only log server console output after server startup
  151. ## never - Never log server console output
  152. ## default: startup
  153. #logServerConsole = startup
  154.  
  155. ## Delay between server auto-starts in milliseconds.
  156. ## default: 750
  157. autostartDelay = 750
  158.  
  159. ## A list of section names in .conf files that can safely be defined
  160. ## or overridden by users. Note that this is just a default value that
  161. ## can itself be overridden in the .conf files in the daemon directory.
  162. ## Use * to allow all sections or a regular expression matching allowed
  163. ## sections only.
  164. ## default: ^(encoding|commands|parse_.+)$
  165. #safeConfSections = ^(encoding|commands|parse_.+)$
  166.  
  167. ## Allow symlinks where directories are expected. This check is done for
  168. ## security.
  169. ## default: false
  170. #allowSymlinks = false
  171.  
  172. ## Skip the integrity check for directories. This check is done for
  173. ## security, it verifies that a directory entry is consistent with its
  174. ## filesystem entry. You can disable this if this check causes issues
  175. ## on your particular filesystem.
  176. #default: false
  177. #skipIntegrityCheck = false
  178.  
  179. ## The timeout for template setup operations in seconds
  180. ## default: 600
  181. #templateSetupTimeout=600
  182.  
  183. ## Disables the template functionality. Please use the setting in the panel to
  184. ## disable it there.
  185. ## default: false
  186. #templatesDisabled=false
  187.  
  188. ## Advanced: Use TCP keepalive for daemon connections
  189. #default: true
  190. #tcpKeepAlive = true
  191. ## Advanced: Use TCP keepalive for FTP connections
  192. #default: true
  193. #ftpTcpKeepAlive = true
  194. ## TCP keepalive parameters, use 0 for system default
  195. #default: 0
  196. tcpKeepAliveIdle = 60
  197. tcpKeepAliveInterval = 5
  198. tcpKeepAliveCount = 6
  199. ## Advanced: Set global timeout for TCP connections in seconds, 0 for no
  200. ## timeout
  201. #default: 120
  202. tcpTimeout = 120
  203.  
  204. ## Whether to delete the server directory on the old daemon after a server
  205. ## move. This is disable by default for safety.
  206. # default: false
  207. #deleteAfterMove = false
  208.  
  209. ## Integrated FTP server settings
  210. [ftp]
  211. ## Wheter or not to enable the integrated FTP server, true/false
  212. ## default: true
  213. enabled = true
  214. ## IP to listen on for FTP connections, uncomment to use the same as
  215. ## for the daemon.
  216. ## 0.0.0.0 means listening on all available interfaces (all IPs)
  217. ## default: same as the "ip" setting for the daemon, see above
  218. ftpIp = 0.0.0.0
  219. ## See the descriptions of "externalIp" and "ip" for the daemon above
  220. ## default: same as "externalIp" if "ftpIp" is "0.0.0.0" otherwise "ftpIp"
  221. #ftpExternalIp =
  222. ## Masquerade IP address to use for passive FTP connections when
  223. ## Multicraft is running behind a router.
  224. ## default: empty
  225. #ftpNatIp =
  226. ## A port range to use for passive data transfers. If this is not
  227. ## specified the FTP server will use random ports.
  228. ## Format: 4000-8000
  229. ## default: empty
  230. #ftpPasvPorts =
  231. ## Port to listen on for incoming FTP connections. Change this to
  232. ## something else if you are already running an FTP server on this
  233. ## system.
  234. ## default: 21
  235. ftpPort = 21
  236. ## Regular expression matching files that can't be manipulated by
  237. ## users in any way. If you want users to be able to upload their own
  238. ## plugins instead of using the ones you provide for them you can
  239. ## just comment this option out.
  240. ## default: empty
  241. #forbiddenFiles = \.(jar|exe|bat|pif|sh)$
  242. ## Set the level of detail for FTP server log messages in the multicraft.log.
  243. ## Errors will always be logged, regardless of this setting.
  244. ## Available levels:
  245. ## full - Log all messages
  246. ## basic - Don't log client/server communication
  247. ## none - No FTP logging
  248. ## default: full
  249. ftpLogLevel = full
  250. ## If this setting is enabled the FTP server will not be started when the main
  251. ## daemon process is started. You can start the FTP server separately by using
  252. ## "start_ftp" instead of "start" as the parameter to the daemon command.
  253. ## default: false
  254. ftpSeparate = false
  255. ## The PID file for the FTP only process. The path is relative to "baseDir"
  256. ## default: multicraft_ftp.pid
  257. ftpPidFile = multicraft_ftp.pid
  258. ## The log file to use for the FTP only process. This setting has no effect if
  259. ## the FTP server is started as part of the main daemon process (i.e. if
  260. ## "ftpSeparate" is false.
  261. ## default: multicraft.log (same as the daemon)
  262. ftpLogFile = multicraft.log
  263.  
  264. ## Minecraft default settings
  265. [minecraft]
  266. ## The default amount of reserved memory
  267. ## default: 1024
  268. memory = 1024
  269. ## The name of the java executable
  270. ## default: /usr/bin/java
  271. java = {MULTICRAFT_DIR}\java.bat
  272. ## The jar file to use. This file will be looked for in the "base"
  273. ## directory as configured above
  274. ## default: minecraft_server.jar
  275. jar = minecraft_server.jar
  276.  
  277. ## Backup settings
  278. [backup]
  279. ## The command to run a backup. The following variables can be used:
  280. ## - {WORLD} The name of the world being backed up
  281. ## - {SERVER_DIR} The directory of the server (working directory)
  282. ## - {MULTICRAFT_DIR} The Multicraft base directory ("baseDir" above)
  283. ## - {BASE_DIR} The directory containing all the servers ("serversDir above")
  284. ## Note that the resulting files is expected to be named "{WORLD}-tmp.zip"
  285. command = /usr/bin/zip -qr "{WORLD}-tmp.zip" . -i "{WORLD}"*/*
  286. ## The same setting for Windows systems
  287. commandWin = "{MULTICRAFT_DIR}\bin\zip.exe" -qr "{WORLD}-tmp.zip" "{WORLD}"*/
  288. ## Uncomment the following commands to backup the entire server directory
  289. ## instead of just the current world
  290. #command = /usr/bin/zip -qr "{WORLD}-tmp.zip" .
  291. #commandWin = "{MULTICRAFT_DIR}\bin\zip.exe" -qr "{WORLD}-tmp.zip" .
  292.  
  293. ## System settings
  294. [system]
  295. ## Most of the settings below are for Linux only
  296.  
  297. ## Whether or not to use one system user per Minecraft server.
  298. ## This is recommended if you let your users upload untrusted executables.
  299. ## Note that for every server a new system user is automatically created
  300. ## if this option is enabled (user name format and commands configured below).
  301. ## default: false
  302. #multiuser = true
  303.  
  304. ## Display the output of this command in the panel under
  305. ## "Settings"->"Multicraft Status"
  306. ## default: empty
  307. #infoCmd = uptime
  308. #infoCmdWin =
  309.  
  310. ## The name format for new users, the following variables can be used:
  311. ## - {ID} The server ID
  312. ## default: mc{ID}
  313. userFormat = mc{ID}
  314. ## The name format for new groups, the following variables can be used:
  315. ## - {ID} The server ID
  316. ## - {USER} The full username
  317. ## default: same as userFormat
  318. #groupFormat = {USER}
  319.  
  320. ## The commands to create and delete system users and groups
  321. ## The following variables can be used:
  322. ## - {USER} The full username
  323. ## - {GROUP} The full groupname
  324. ## - {ID} The server ID
  325. ## - {DIR} The server base directory, used as the users home
  326. ## These commands cannot contain escaped quotes or empty arguments
  327. addUser = /usr/sbin/useradd -c "Multicraft Server {ID}" -d "{DIR}" -g "{GROUP}" -s /bin/false "{USER}"
  328. addGroup = /usr/sbin/groupadd "{GROUP}"
  329. delUser = /usr/sbin/userdel "{USER}"
  330. delGroup = /usr/sbin/groupdel "{GROUP}"
  331.  
  332. ## Regular expression for filtering file names. Any match gets replaced by "_".
  333. ## Warning: Changing this is potentially dangerous
  334. ## default: [\\/<>:|*?"'&;$~%\0]
  335. #fileFilter = [\\/<>:|*?"'&;$~%\0]
  336.  
  337. ## The command to unpack a zip file. The following variables can be used:
  338. ## - {FILE} The name of the zip archive to restore
  339. ## - {MULTICRAFT_DIR} The daemon base directory
  340. unpackCmd = /usr/bin/unzip -quo "{FILE}"
  341. ## The same setting for Windows systems
  342. unpackCmdWin = "{MULTICRAFT_DIR}\bin\unzip.exe" -quo "{FILE}"
  343.  
  344. ## The command to pack a zip file. The following variables can be used:
  345. ## - {FILE} The name of the zip archive to create
  346. ## - {MULTICRAFT_DIR} The daemon base directory
  347. packCmd = /usr/bin/zip -qr "{FILE}" .
  348. ## The same setting for Windows systems
  349. packCmdWin = "{MULTICRAFT_DIR}\bin\zip.exe" -qr "{FILE}" .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement