mirror of
https://github.com/DerTyp7/docker_minecraft_server_auto_starter.git
synced 2025-10-29 12:42:09 +01:00
Update response message in RequestHandler class
This commit is contained in:
@@ -50,7 +50,7 @@ class RequestHandler(threading.Thread):
|
|||||||
print('starting docker container {}'.format(container_ip))
|
print('starting docker container {}'.format(container_ip))
|
||||||
self.docker_handler.get_container_by_ip(container_ip).start()
|
self.docker_handler.get_container_by_ip(container_ip).start()
|
||||||
# Send a response
|
# Send a response
|
||||||
self.connection.sendall(b'Request handled')
|
self.connection.sendall("Server starting...".encode('utf-8'))
|
||||||
else:
|
else:
|
||||||
print('no docker container mapped to this port')
|
print('no docker container mapped to this port')
|
||||||
|
|
||||||
|
|||||||
19
nginx.conf
Normal file
19
nginx.conf
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
events { }
|
||||||
|
stream {
|
||||||
|
upstream upstream_25565 {
|
||||||
|
server 172.20.0.3:25565;
|
||||||
|
server 127.0.0.1:25565 backup;
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 172.20.0.2:25565;
|
||||||
|
proxy_pass upstream_25565;
|
||||||
|
}
|
||||||
|
upstream upstream_25566 {
|
||||||
|
server 172.20.0.4:25565;
|
||||||
|
server 127.0.0.1:25566 backup;
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 172.20.0.2:25566;
|
||||||
|
proxy_pass upstream_25566;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user