Update server ports in nginxHandler.py and

docker-compose.yml
This commit is contained in:
DerTyp7
2023-11-24 14:39:02 +01:00
parent 9e932623c7
commit f95004f03d
2 changed files with 6 additions and 3 deletions

View File

@@ -34,8 +34,8 @@ class NginxHandler:
for port in port_ip_map:
nginx_conf.write(' upstream upstream_{} {{\n'.format(port))
nginx_conf.write(' server {}:{};\n'.format(
port_ip_map[port], port))
nginx_conf.write(' server {}:25565;\n'.format(
port_ip_map[port]))
nginx_conf.write(
' server 127.0.0.1:{} backup;\n'.format(port))
nginx_conf.write(' }\n')

View File

@@ -30,6 +30,8 @@ services:
type: "PAPER"
EULA: "TRUE"
MOTD: "TEST1"
#! Dont change SERVER_PORT. Use PORT_IP_MAP in minecraft_server_auto_starter instead.
#! SERVER_PORT default is "25565"
networks:
mc_network:
ipv4_address: 172.20.0.3
@@ -39,7 +41,8 @@ services:
type: "PAPER"
EULA: "TRUE"
MOTD: "TEST2"
SERVER_PORT: "25566"
#! Dont change SERVER_PORT. Use PORT_IP_MAP in minecraft_server_auto_starter instead.
#! SERVER_PORT default is "25565"
networks:
mc_network:
ipv4_address: 172.20.0.4