Advertisement
Guest User

multi

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