Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.25 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 = multicraft:multicraft
  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 = daemon:daemon
  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 = 127.0.0.1
  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 = ddc81370e446d3f688eabc50da7c8fdb
  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 =
  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 = sqlite:data.db
  57. ## Example for MySQL connections:
  58. database = mysql:host=127.0.0.1;port=3307;dbname=bitnami_multicraft_daemon
  59. dbUser = bn_multicraft
  60. dbPassword = 28910237c5
  61. dbCharset = utf8
  62.  
  63. ## A name for this daemon, this is optional
  64. ## default: Multicraft Daemon
  65. name = Multicraft default daemon
  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 = 0
  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 = D:\Multicraft/apps/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 = tmp/multicraft.pid
  98. logFile = logs/multicraft.log
  99. licenseFile = D:\Multicraft/apps/multicraft/multicraft.key
  100. scriptsFile = conf/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. ## Automatically update server binaries, conf files or both on daemon
  162. ## startup. Valid values:
  163. ## - empty Don't update anything on startup
  164. ## - base Update the server binaries and conf files for the base server
  165. ## types that come with Multicraft. Currently:
  166. ## minecraft_server.jar.conf, minecraft_optimized.jar.conf,
  167. ## craftbukkit.jar.conf, spigot.jar.conf
  168. ## - initial Same as "base" but only update if the jar files don't exist
  169. ## - binary Update all server binaries on daemon startup
  170. ## - conf Update all server conf files on daemon startup
  171. ## - both Update all server binaries and conf files on daemon startup
  172. ## default: empty
  173. startupServerUpdate = initial
  174.  
  175. ## A list of section names in .conf files that can safely be defined
  176. ## or overridden by users. Note that this is just a default value that
  177. ## can itself be overridden in the .conf files in the daemon directory.
  178. ## Use * to allow all sections or a regular expression matching allowed
  179. ## sections only.
  180. ## default: ^(encoding|commands|parse_.+)$
  181. #safeConfSections = ^(encoding|commands|parse_.+)$
  182.  
  183. ## Allow symlinks where directories are expected. This check is done for
  184. ## security.
  185. ## default: false
  186. #allowSymlinks = false
  187.  
  188. ## Skip the integrity check for directories. This check is done for
  189. ## security, it verifies that a directory entry is consistent with its
  190. ## filesystem entry. You can disable this if this check causes issues
  191. ## on your particular filesystem.
  192. ## default: true
  193. #skipIntegrityCheck = false
  194.  
  195. ## The timeout for template setup operations in seconds
  196. ## default: 600
  197. #templateSetupTimeout = 600
  198.  
  199. ## Disables the template functionality. Please use the setting in the panel to
  200. ## disable it there.
  201. ## default: false
  202. #templatesDisabled = false
  203.  
  204. ## Advanced: Use TCP keepalive for daemon connections
  205. ## default: true
  206. #tcpKeepAlive = true
  207. ## Advanced: Use TCP keepalive for FTP connections
  208. ## default: true
  209. #ftpTcpKeepAlive = true
  210. ## TCP keepalive parameters, use 0 for system default
  211. ## default: 0
  212. tcpKeepAliveIdle = 60
  213. tcpKeepAliveInterval = 5
  214. tcpKeepAliveCount = 6
  215. ## Advanced: Set global timeout for TCP connections in seconds, 0 for no
  216. ## timeout
  217. ## default: 120
  218. tcpTimeout = 120
  219.  
  220. ## Advanced: Prefer IPv4 for version check requests.
  221. ## Can speed up hostname lookup.
  222. ## default: true
  223. #preferIPv4 = true
  224.  
  225. ## Whether to delete the server directory on the old daemon after a server
  226. ## move. This is disabled by default for safety.
  227. ## default: false
  228. #deleteAfterMove = false
  229.  
  230. ## Only allow a single script to be run at a time for each server. If disabled
  231. ## there is no limit on the number of scripts that can be running at the same
  232. ## time.
  233. ## default: false
  234. singleScriptPerServer = true
  235.  
  236. ## The timeout for server executable and config file downloads in seconds.
  237. ## default: 15
  238. #downloadTimeout = 15
  239. ## The User-Agent string to use for server executable and config file downloads
  240. #downloadUserAgent = Your Custom User-Agent
  241. ## The User-Agent string to use for plugin downloads
  242. #downloadUserAgentPlugins = Your Custom User-Agent
  243. ## Whether or not to add version/architecture/OS parameters when downloading
  244. ## config files
  245. ## default: true
  246. #downloadAddVersionInfo = true
  247.  
  248. ## When enabled the remote host will be verified when using HTTPS, otherwise
  249. ## the host and certificate checks are skipped.
  250. ## default: false
  251. #secureDownloads = false
  252.  
  253. ## The CA certificate bundle to use for verifying secure downloads. If set to
  254. ## "auto" the daemon will try a set of default paths.
  255. ## default: auto
  256. #caBundle = /etc/ssl/certs/ca-certificates.crt
  257.  
  258. [useragent]
  259. ## The path to the Multicraft useragent. This program is used in
  260. ## multiuser mode to access user files.
  261. ## default: bin (-> "baseDir"/bin, same as daemonDir)
  262. #userAgentDir = bin
  263. ## The executable of the Multicraft useragent. Note that a config
  264. ## file with the same name as this setting (plus .conf) will be
  265. ## generated next to this file.
  266. ## default: launcher (-> "baseDir"/"userAgentDir"/useragent)
  267. #userAgentFile = useragent
  268. ## The minimum allowed user and group IDs for server users
  269. ## default: 100
  270. #userAgentMinUid = 100
  271. #userAgentMinGid = 100
  272. ## The script to run when a server is being prepared. The path is
  273. ## relative to the userAgentDir.
  274. ## NOTE: This script will be run as the superuser.
  275. ## default: empty
  276. #userAgentSuperuserPrepare =
  277. ## The script to run when a server is being prepared. The path is
  278. ## relative to the baseDir.
  279. ## default: empty
  280. #userAgentPrepare =
  281. ## Various useragent configuration options
  282. #userAgentCp = /bin/cp
  283. #userAgentCpOpts = --preserve=mode,timestamps --
  284. #userAgentDirCpOpts = -r --preserve=mode,timestamps --
  285. #userAgentUnzip = D:\Multicraft/common/unzip
  286. #userAgentUnzipOpts = -qql
  287. #userAgentUnzipRe = ^(?:\s+[^\s]+){3}\s+(.*)$
  288.  
  289.  
  290. [launcher]
  291. ## The path to the Multicraft launcher. This launcher program enables
  292. ## Multicraft to run servers that need a console to run correctly.
  293. ## default: launcher (-> "baseDir"/launcher)
  294. #launcherDir = launcher
  295. ## The executable of the Multicraft launcher
  296. ## default: launcher (-> "baseDir"/"launcherDir"/launcher)
  297. #launcherFile = launcher
  298.  
  299. ## Integrated FTP server settings
  300. [ftp]
  301. ## Wheter or not to enable the integrated FTP server, true/false
  302. ## default: true
  303. enabled = true
  304. ## IP to listen on for FTP connections, uncomment to use the same as
  305. ## for the daemon.
  306. ## 0.0.0.0 means listening on all available interfaces (all IPs)
  307. ## default: same as the "ip" setting for the daemon, see above
  308. ftpIp = 127.0.0.1
  309. ## See the descriptions of "externalIp" and "ip" for the daemon above
  310. ## default: same as "externalIp" if "ftpIp" is "0.0.0.0" otherwise "ftpIp"
  311. ftpExternalIp = 127.0.0.1
  312. ## Masquerade IP address to use for passive FTP connections when
  313. ## Multicraft is running behind a router.
  314. ## default: empty
  315. #ftpNatIp =
  316. ## A port range to use for passive data transfers. If this is not
  317. ## specified the FTP server will use random ports.
  318. ## Format: 4000-8000
  319. ## default: empty
  320. #ftpPasvPorts =
  321. ## Port to listen on for incoming FTP connections. Change this to
  322. ## something else if you are already running an FTP server on this
  323. ## system.
  324. ## default: 21
  325. ftpPort = 21
  326. ## Regular expression matching files that can't be manipulated by
  327. ## users in any way. If you want users to be able to upload their own
  328. ## plugins instead of using the ones you provide for them you can
  329. ## just comment this option out.
  330. ## default: empty
  331. forbiddenFiles = \.(jar|exe|bat|pif|sh)$
  332. ## Set the level of detail for FTP server log messages in the multicraft.log.
  333. ## Errors will always be logged regardless of this setting.
  334. ## Available levels:
  335. ## - full Log all messages
  336. ## - basic Don't log client/server communication
  337. ## - none No FTP logging
  338. ## default: full
  339. ftpLogLevel = full
  340. ## If this setting is enabled the FTP server will not be started when the main
  341. ## daemon process is started. You can start the FTP server separately by using
  342. ## "start_ftp" instead of "start" as the parameter to the daemon command.
  343. ## default: false
  344. ftpSeparate = false
  345. ## The PID file for the FTP only process. The path is relative to "baseDir"
  346. ## default: multicraft_ftp.pid
  347. ftpPidFile = tmp/multicraft_ftp.pid
  348. ## The log file to use for the FTP only process. This setting has no effect if
  349. ## the FTP server is started as part of the main daemon process (i.e. if
  350. ## "ftpSeparate" is false.
  351. ## default: multicraft.log (same as the daemon)
  352. ftpLogFile = logs/multicraft.log
  353. ## Throttle the FTP bandwidth (experimental)
  354. ## Incoming data throttle (Kb/s)
  355. ## default: 0 (unlimited)
  356. #ftpThrottleIn = 0
  357. ## Outgoing data throttle (Kb/s)
  358. ## default: 0 (unlimited)
  359. #ftpThrottleOut = 0
  360.  
  361. ## Starts an FTPS server when enabled
  362. ## default: false
  363. #ftps = false
  364.  
  365. ## The certificate file to use for the FTPS server. This is required when the
  366. ## "ftps" setting is enabled. You can generate your own self signed certificate
  367. ## as described here:
  368. ## https://httpd.apache.org/docs/2.4/ssl/ssl_faq.html#selfcert
  369. ## It's not recommended to use the default certificate for live deployments.
  370. ## default: ssl/ftps.pem
  371. #ftpsCertfile = ssl/ftps.pem
  372. ## The key file to use for the FTPS server. This can be left empty if the key
  373. ## is already contained in the certificate file.
  374. ## default: empty
  375. #ftpsKeyfile =
  376. ## Enable this to force users to use FTPS
  377. ## default: false
  378. #ftpsForce = false
  379. ## This will allow some older protocols considered insecure to be used by the
  380. ## FTPS server to improve compatibility with older clients.
  381. ## default: false
  382. #ftpsCompatMode = false
  383.  
  384. ## Minecraft default settings
  385. [minecraft]
  386. ## The default amount of reserved memory
  387. ## default: 1024
  388. memory = 1024
  389. ## The name of the java executable
  390. ## default: /usr/bin/java
  391. java = D:\Multicraft\java\bin\java.exe
  392. ## The jar file to use. This file will be looked for in the "base"
  393. ## directory as configured above
  394. ## default: minecraft_server.jar
  395. jar = minecraft_server.jar
  396.  
  397. ## Backup settings
  398. [backup]
  399. ## The command to run a backup. The following variables can be used:
  400. ## - {WORLD} The name of the world being backed up
  401. ## - {SERVER_DIR} The directory of the server (working directory)
  402. ## - {MULTICRAFT_DIR} The Multicraft base directory ("baseDir" above)
  403. ## - {BASE_DIR} The directory containing all the servers ("serversDir above")
  404. ## Note that the resulting files is expected to be named "{WORLD}-tmp.zip"
  405. command = D:\Multicraft/common/zip -qr "{WORLD}-tmp.zip" . -i "{WORLD}"*/*
  406. ## The same setting for Windows systems
  407. commandWin = "{MULTICRAFT_DIR}\bin\zip.exe" -qr "{WORLD}-tmp.zip" "{WORLD}"*/
  408. ## Uncomment the following commands to backup the entire server directory
  409. ## instead of just the current world
  410. ## command = D:\Multicraft/common/zip -qr "{WORLD}-tmp.zip" . --exclude {WORLD}*.zip
  411. ## commandWin = "{MULTICRAFT_DIR}\bin\zip.exe" -qr "{WORLD}-tmp.zip" . --exclude {WORLD}*.zip
  412.  
  413. ## System settings
  414. [system]
  415. ## Most of the settings below are for Linux only
  416.  
  417. ## Whether or not to use one system user per Minecraft server.
  418. ## This is recommended if you let your users upload untrusted executables.
  419. ## Note that for every server a new system user is automatically created
  420. ## if this option is enabled (user name format and commands configured below).
  421. ## default: false
  422. multiuser = false
  423.  
  424. ## Display the output of this command in the panel under
  425. ## "Settings"->"Multicraft Status"
  426. ## default: empty
  427. #infoCmd = uptime
  428. #infoCmdWin =
  429.  
  430. ## The name format for new users, the following variables can be used:
  431. ## - {ID} The server ID
  432. ## default: mc{ID}
  433. userFormat = mc{ID}
  434. ## The name format for new groups, the following variables can be used:
  435. ## - {ID} The server ID
  436. ## - {USER} The full username
  437. ## default: same as userFormat
  438. #groupFormat = {USER}
  439.  
  440. ## The commands to create and delete system users and groups
  441. ## The following variables can be used:
  442. ## - {USER} The full username
  443. ## - {GROUP} The full groupname
  444. ## - {ID} The server ID
  445. ## - {DIR} The server base directory, used as the users home
  446. ## These commands cannot contain escaped quotes or empty arguments
  447. addUser = /usr/sbin/useradd -c "Multicraft Server {ID}" -d "{DIR}" -g "{GROUP}" -s /bin/false "{USER}"
  448. addGroup = /usr/sbin/groupadd "{GROUP}"
  449. delUser = /usr/sbin/userdel "{USER}"
  450. delGroup = /usr/sbin/groupdel "{GROUP}"
  451.  
  452. ## Enable or disable Linux quota support
  453. ## default: false
  454. #enableQuota = false
  455.  
  456. ## The command to set the Linux user quota
  457. ## The following variables can be used:
  458. ## - Variables from "addUser" comment
  459. ## - {QUOTA} The disk space quota in MB
  460. ## - {QUOTA_BLOCKS} The disk space quota in blocks
  461. #setUserQuota = /usr/sbin/setquota -u "{USER}" 0 "{QUOTA_BLOCKS}" 0 0 -a
  462.  
  463. ## The script used to fetch quota usage information for the current user
  464. ## (in blocks)
  465. ## default: scripts/getquota.sh
  466. #quotaCheckScript = scripts/getquota.sh
  467.  
  468. ## The minimum time in seconds between two quota usage checks
  469. ## default: 20
  470. #quotaCheckDelay = 20
  471.  
  472. ## The kernel block size to use for quota calculation
  473. ## default: 1024
  474. #quotaBlockSize = 1024
  475.  
  476. ## Regular expression for filtering file names. Any match gets replaced by "_".
  477. ## Warning: Changing this is potentially dangerous
  478. ## default: [\\/<>:|*?"'&;$~%\0]
  479. #fileFilter = [\\/<>:|*?"'&;$~%\0]
  480.  
  481. ## The command to unpack a zip file. The following variables can be used:
  482. ## - {FILE} The name of the zip archive to restore
  483. ## - {MULTICRAFT_DIR} The daemon base directory
  484. unpackCmd = D:\Multicraft/common/unzip -quo "{FILE}"
  485. ## The same setting for Windows systems
  486. unpackCmdWin = "{MULTICRAFT_DIR}\bin\unzip.exe" -quo "{FILE}"
  487.  
  488. ## The command to pack a zip file. The following variables can be used:
  489. ## - {FILE} The name of the zip archive to create
  490. ## - {MULTICRAFT_DIR} The daemon base directory
  491. packCmd = D:\Multicraft/common/zip -qr "{FILE}" .
  492. ## The same setting for Windows systems
  493. packCmdWin = "{MULTICRAFT_DIR}\bin\zip.exe" -qr "{FILE}" .
  494.  
  495. ## Settings for Docker support (EXPERIMENTAL)
  496. [docker]
  497. ## Enable Docker support
  498. ## default: false
  499. enabled = false
  500.  
  501. ## The name of the user that the container process should belong to. It's
  502. ## recommended to create a new user that is used just for this, for example:
  503. ## # adduser --disabled-login --no-create-home --ingroup users docker
  504. ## default: docker
  505. #user = docker
  506.  
  507. ## The name of the "docker" group. This group needs to have access to the
  508. ## docker daemon.
  509. ## default: docker
  510. #group = docker
  511.  
  512. ## The full path to the "docker" executable
  513. ## default: /usr/bin/docker
  514. #docker = /usr/bin/docker
  515.  
  516. ## The name of the Docker image to use
  517. ## default: java:jre
  518. #image = java:jre
  519.  
  520. ## Memory in MB to add to server memory value for Docker containers
  521. ## default: 128
  522. #memoryAdd = 128
  523.  
  524. ## CPU factor for each Docker container. Multiplies default CPU shares by this
  525. ## value.
  526. ## default: 1.0
  527. #cpuFactor = 1.0
  528.  
  529. ## If this is enabled the daemon will try to always show the external IP in the
  530. ## server console instead of the IP used in the container.
  531. ## default: true
  532. #maskIp = true
  533.  
  534. ## Format for volume definitions (see mounts below)
  535. ## default: --volume=%s:%s:%s
  536. #volumeFormat = --volume=%s:%s:%s
  537.  
  538. ## Format for environment variable definitions
  539. ## default: --env=%s=%s
  540. #envFormat = --env=%s=%s
  541.  
  542. ## Directories to mount inside the container. Uses the "volumeFormat" setting
  543. ## to mount the directories. Format:
  544. ## HOST_DIR[:[CONTAINER_DIR]:[MODE]]
  545. ## If CONTAINER_DIR is omitted it is set to the same value as HOST_DIR.
  546. ## MODE can be "rw" for writable or "ro" for read-only, defaults to "ro".
  547. #mounts = "{TEMPLATES_DIR}" "{MULTICRAFT_DIR}/scripts" "{DAEMON_JAR_DIR}" "{SERVER_DIR}::rw"
  548.  
  549. ## Additional arguments to pass to Docker
  550. ## default: empty
  551. #arguments =
  552.  
  553. ## The command to start the Docker container. See the [start] section of the
  554. ## default "craftbukkit.jar.conf" for a list of available variables.
  555. ## Additional variables:
  556. ## - {DOCKER_ARGS} The additional arguments from the "arguments" setting
  557. ## - {DOCKER_VOLUMES} The volume arguments generated from the "volumeFormat"
  558. ## and "mounts" settings
  559. ## - {DOCKER_ENVS} The env arguments generated using the "envFormat" setting
  560. ## - {DOCKER_IMAGE} The docker image to use
  561. ## - {DOCKER_MEMORY} The memory limit in MB to use for this container. This is
  562. ## calculated as the server memory limit plus the "memoryAdd" setting
  563. ## - {DOCKER_CPUSHARES} The CPU shares this container can use. This is
  564. ## calculated using the "cpuFactor" setting (1024 * cpuFactor)
  565. ## - {DOCKER_IP} The actual IP setting of the server. When running in a Docker
  566. ## container the {IP} variable is always 0.0.0.0
  567. #command = run --rm -i -a stdin -a stdout -a stderr --read-only --tmpfs /tmp:exec --security-opt=no-new-privileges --cap-drop=ALL {DOCKER_ARGS} -p {DOCKER_IP}:{PORT}:{PORT} -w {WORKING_DIR} -u {UID}:{GID} -m {DOCKER_MEMORY}M --cpu-shares={DOCKER_CPUSHARES} --name=mc{SERVER_ID} {DOCKER_VOLUMES} {DOCKER_ENVS} {DOCKER_IMAGE}
  568.  
  569. ## The command to stop a container when a server did not shut down on its own
  570. ## after a certain period of time
  571. #stopCommand = stop mc{SERVER_ID}
  572.  
  573. ## The command to kill a container when it does not close after sending the
  574. ## stop command
  575. #killCommand = kill mc{SERVER_ID}
  576.  
  577. ## The command to determine the PID of the root process of a container
  578. #pidCommand = inspect -f "{{ .State.Pid }}" mc{SERVER_ID}
  579.  
  580. ## Docker settings can be overridden by conf files of server executables in the
  581. ## [docker] section. This setting is a comma sepparated list of setting types
  582. ## that can be overridden. Valid values:
  583. ## - disable: Allows conf files to run without Docker ("enabled" setting)
  584. ## - image: Allows conf files to change the image name ("image" setting)
  585. ## - settings: Allows conf files to change general settings ("memoryAdd",
  586. ## "cpuFactor", "maskIp" settings)
  587. ## - command: Allows conf files to affect the final docker run command
  588. ## ("mounts", "arguments", "command", "stopCommand", "killCommand")
  589. ## default: image, settings
  590. #override = image, settings
  591.  
  592. ## Cleanup existing docker containers using the configured cleanup command
  593. ## before trying to run a server.
  594. ## default: false
  595. #cleanup = false
  596.  
  597. ## The command to cleanup an existing container before starting a server
  598. #cleanupCommand = rm -f mc{SERVER_ID}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement