Update 'MagicBox : Magicbane in a Box'

master
MagicBot 3 years ago
parent
commit
69eed2a51a
  1. 16
      MagicBox-%3A-Magicbane-in-a-Box.md

16
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 Pull the image
`docker pull magicbane/magicbox` ```console docker pull magicbane/magicbox ```
Start your 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. >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 # start container
echo "Starting MagicBox" 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(?,?,?);```
Loading…
Cancel
Save