Go to file
HimbeerserverDE 941f5ff30c Credits 2021-01-18 17:40:27 +01:00
multiserver go clean up some code 2021-01-17 21:43:23 +01:00
.gitignore Fix storage DB filename + Untrack 2021-01-14 21:57:39 +01:00
LICENSE Add second copyright notice 2021-01-16 22:32:06 +01:00
README.md Credits 2021-01-18 17:40:27 +01:00
active_object.go Stop using Peer IDs for AO map 2021-01-18 10:49:56 +01:00
auth.go go clean up some code 2021-01-17 21:43:23 +01:00
chat.go go clean up some code 2021-01-17 21:43:23 +01:00
command.go go clean up some code 2021-01-17 21:43:23 +01:00
config.go go clean up some code 2021-01-17 21:43:23 +01:00
end.go go clean up some code 2021-01-17 21:43:23 +01:00
go.mod go clean up some code 2021-01-17 21:43:23 +01:00
go.sum go clean up some code 2021-01-17 21:43:23 +01:00
init.go go clean up some code 2021-01-17 21:43:23 +01:00
listen.go go clean up some code 2021-01-17 21:43:23 +01:00
media.go Change media downloader username 2021-01-16 19:35:28 +01:00
net.go go fmt 2021-01-09 11:26:30 +00:00
peer.go Stop using Peer IDs for AO map 2021-01-18 10:49:56 +01:00
player.go go clean up some code 2021-01-17 21:43:23 +01:00
privs.go go clean up some code 2021-01-17 21:43:23 +01:00
process.go go fmt 2021-01-09 11:26:30 +00:00
proto.go go clean up some code 2021-01-17 21:43:23 +01:00
proxy.go go clean up some code 2021-01-17 21:43:23 +01:00
redirect.go Stop using Peer IDs for AO map 2021-01-18 10:49:56 +01:00
send.go go clean up some code 2021-01-17 21:43:23 +01:00
signal.go gofmt 2021-01-11 22:05:51 +01:00
storage.go go clean up some code 2021-01-17 21:43:23 +01:00

README.md

multiserver

Minetest reverse proxy supporting multiple servers and media multiplexing

Credits

This project is based on and was made possible by anon55555's RUDP package.

Installation

Go 1.15 or higher is required

go get github.com/HimbeerserverDE/multiserver

cd ~/go/src/github.com/HimbeerserverDE/multiserver/multiserver

go build

Updating

go get -u github.com/HimbeerserverDE/multiserver

cd ~/go/src/github.com/HimbeerserverDE/multiserver/multiserver

go build

How to use

Note: This shouldn't be used with existing minetest servers without moving authentication data (not the database files) to the proxy and then deleting the auth databases on the minetest servers! Not doing so can cause proxy <-> mt_server authentication to fail.

Running

The go build command will create an executable file in ~/go/src/github.com/HimbeerserverDE/multiserver/multiserver/multiserver. This file should always be run from the same working directory. If you don't do this, the program will be unable to read the old data and will create the default files in the new working directory.

Configuration

The configuration file is located in WORKING_DIR/config/multiserver.yml

  • Default config file
host: "0.0.0.0:33000"
player_limit: -1
servers:
  lobby:
    address: "127.0.0.1:30000"
default_server: lobby
force_default_server: true

host

Type: String
Description: The IP address and port the proxy will be running on

player_limit

Type: Integer
Description: Maximum number of concurrent connections, unlimited if the value is negative

servers

Type: Dictionary
Description: List of all servers

servers.*

Type: Dictionary
Description: Contains server details

servers.*.address

Type: String
Description: The IP address and port this server is running on

servers.*.priv

Type: String
Description: If this is set, players need this privilege (on the proxy) to connect to this server.
Leave this empty to require no special privilege. Note that this only affects the #server command. This means that
players can still be connected to this server if it is the default server, a minetest server requests it
or if a different command is used.

default_server

Type: String
Description: Name of the minetest server new players are sent to

force_default_server

Type: Boolean
Description: If this is false known players are sent to the last server they were connected to, not to the default server

admin

Type: String
Description: The "privs" privilege is granted to the player with this name on startup