Skip to content

Reverse proxy to multiple minecraft servers based on domain #40

@timvisee

Description

@timvisee

Discussed in #35

Originally posted by tW4r December 21, 2022
This project already does proxying
internet:25565 -> lazymc:25565 -> minecraft server:25566

It is possible to determine the domain the user is connecting to from the login packet
Based on this fact it is possible to direct them to different minecraft servers as such

server-a.example.com:25565 \                  / minecraft server-a:25566
                           +-> lazymc:25565 ->+
server-b.example.com:25565 /                  \ minecraft server-b:25567

An example of this is infrared (https://github.com/haveachin/infrared)

I would imagine it could work by splitting lazymc.toml to multiple files in a config directory:

# file 1
[public]
address="server-a.example.com"
[server]
address="127.0.0.1:22566"
# file 2
[public]
address="server-b.example.com"
[server]
address="127.0.0.1:22567"
```</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions