File tree Expand file tree Collapse file tree 4 files changed +52
-0
lines changed Expand file tree Collapse file tree 4 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ .idea
Original file line number Diff line number Diff line change 11# Minecraft NGINX Reverse Proxy
22
33This project is based on [ tekn0irs] ( https://github.com/tekn0ir ) [ nginx-stream] ( https://github.com/tekn0ir/nginx-stream ) .
4+
5+ ## Requirements
6+ - A webserver with a static IP address supporting Docker
7+
8+ ## Setup
9+ Clone this project to your webserver.
10+ ```
11+ git clone https://github.com/vollborn/minecraft-nginx-reverse-proxy.git
12+ ```
13+
14+ Enter the cloned directory.
15+ ``` shell
16+ cd minecraft-nginx-reverse-proxy
17+ ```
18+
19+ Run docker-compose build to build the container.
20+ ```
21+ docker-compose build
22+ ```
23+
24+ ## Running
25+
26+ You can start the container by executing this command:
27+ ``` shell
28+ docker-compose up -d
29+ ```
30+
31+ To set the host IP address you need to execute the following command:
32+
33+ ``` shell
34+ # Windows
35+ sethost < ip>
36+
37+ # Linux
38+ bash ./sethost.sh < ip>
39+ ```
40+
41+ Here we go.
42+ <br >You should be up and running!
Original file line number Diff line number Diff line change 1+ @ echo off
2+
3+ set container = " proxy"
4+ set script = " /opt/nginx/sbin/set_host.sh"
5+
6+ docker-compose exec %container% bash %script% %1
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ container=" proxy"
4+ script=" /opt/nginx/sbin/set_host.sh"
5+
6+ docker-compose exec $container bash $script $1
You can’t perform that action at this time.
0 commit comments