From 69eed2a51a68fed2f5c0a82771d5cdba65b06d1f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 1 May 2022 17:55:52 +0000 Subject: [PATCH] Update 'MagicBox : Magicbane in a Box' --- MagicBox-%3A-Magicbane-in-a-Box.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/MagicBox-%3A-Magicbane-in-a-Box.md b/MagicBox-%3A-Magicbane-in-a-Box.md index edd6fd2..eedda0a 100644 --- a/MagicBox-%3A-Magicbane-in-a-Box.md +++ b/MagicBox-%3A-Magicbane-in-a-Box.md @@ -30,11 +30,11 @@ Docker is available for most all operating systems. Along with a Docker Hub acc Pull the image -`docker pull magicbane/magicbox` +```console docker pull magicbane/magicbox ``` Start your MagicBox -`docker run --name magicbox -p 5000:5000 -p 6000:6000 -p 8000:8000 -v /home/mbbox/mb.conf:/home/mbbox/magicbane/mb.conf magicbane/magicbox:latest &` +```console docker run --name magicbox -p 5000:5000 -p 6000:6000 -p 8000:8000 -v /home/mbbox/mb.conf:/home/mbbox/magicbane/mb.conf magicbane/magicbox:latest & ``` >It is recommended that you change the external port via the docker run command not within the [magicbane.conf](http://repo.magicbane.com/MagicBane/Server/wiki/magicbane.conf) configuration file. Docker will automatically route ip traffic through the bridge to the corect interal port. MagicBox uses three ports. 5000 is used for a debugger or profiler. 6000 is used for the login server. 8000 is used for the world server. If behind a NAT/router the user must open these ports on his router or configure a DMZ. @@ -54,4 +54,14 @@ docker rm -f magicbox > /dev/null 2>&1 # start container echo "Starting MagicBox" -docker run --name magicbox -p 5000:5000 -p 6000:6000 -p 8000:8000 -v /home/mbbox/mb.conf:/home/mbbox/magicbane/mb.conf magicbane/magicbox:latest & ``` +docker run --name magicbox -p 5000:5000 -p 6000:6000 -p 8000:8000 -v /home/mbbox/mb.conf:/home/mbbox/magicbane/mb.conf magicbane/magicbox:latest & +``` + +When a MagicBox administrator first spins up his server it is assumed they might not have web registration sorted on day one. With this in mind the server is configured to auto register accounts on login. + +```MB_LOGIN_AUTOREG="TRUE"``` + +When the time comes whether through Discord or Forum registration we have the backend facilities to plug right into. + +```CALL singleAccountCreate(?,?);``` +```CALL discordAccountCreate(?,?,?);``` \ No newline at end of file