Skip to content
Projects

vollborn/minecraft-nginx-reverse-proxy

View on GitHub

About

A simple nginx reverse proxy for minecraft servers

Developer Tools

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Minecraft NGINX Reverse Proxy

This project is based on tekn0irs nginx-stream.

Requirements

  • A webserver with a static IP address supporting Docker

Setup

This image is available at Docker Hub.

Using docker run

You can run it by using the following command:

docker run -p 25565:25565 -e INITIAL_HOST=<host> -e INITIAL_PORT=<port> vollborn/minecraft-nginx-reverse-proxy

Using docker compose

You can also use docker-compose. Example docker-compose.yml:

services:
  proxy:
    image: vollborn/minecraft-nginx-reverse-proxy
    restart: unless-stopped
    ports:
      - "${LOCAL_PORT:-25565}:25565"
    environment:
      INITIAL_HOST: <host>
      INITIAL_PORT: <port>
      # TZ: "Europe/Berlin"

Here we go.
You should be up and running!

Development Setup

Clone this project to your webserver.

git clone https://github.com/vollborn/minecraft-nginx-reverse-proxy.git

Enter the cloned directory.

cd minecraft-nginx-reverse-proxy

Then you need to copy the .env.example file. For that, run:

cp .env.example .env

Run docker-compose build to build the container.

docker-compose build

Starting the development container

You can start the container by executing this command:

docker-compose up -d

To change the host IP address or port without restarting the container, you can to execute the following command:

# Windows
sethost <ip> <port>

# Linux
bash ./sethost.sh <ip> <port>

Examples:

# Windows
sethost 192.168.178.99 25565

# Linux
bash ./sethost.sh 192.168.178.99 25565

Explore related projects

Loading…