Skip to content

Commit a9cc9e8

Browse files
committed
Readme & set host scripts
1 parent 173ce48 commit a9cc9e8

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
11
# Minecraft NGINX Reverse Proxy
22

33
This 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!

sethost.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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

sethost.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
container="proxy"
4+
script="/opt/nginx/sbin/set_host.sh"
5+
6+
docker-compose exec $container bash $script $1

0 commit comments

Comments
 (0)