mirror of
https://github.com/DerTyp7/docker_minecraft_server_auto_starter.git
synced 2025-10-29 12:42:09 +01:00
Add NGINX configuration
This commit is contained in:
23
nginx-example.conf
Normal file
23
nginx-example.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
events { }
|
||||
stream {
|
||||
upstream upstream_25565 {
|
||||
server 172.20.0.5:25565;
|
||||
server 127.0.0.1:25565 backup;
|
||||
}
|
||||
server {
|
||||
listen 172.20.0.2:25565;
|
||||
proxy_connect_timeout 5s;
|
||||
proxy_timeout 5s;
|
||||
proxy_pass upstream_25565;
|
||||
}
|
||||
upstream upstream_25566 {
|
||||
server 172.20.0.6:25565;
|
||||
server 127.0.0.1:25566 backup;
|
||||
}
|
||||
server {
|
||||
listen 172.20.0.2:25566;
|
||||
proxy_connect_timeout 5s;
|
||||
proxy_timeout 5s;
|
||||
proxy_pass upstream_25566;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user