Add new environment variable for starting

placeholder server
This commit is contained in:
Janis
2023-11-24 21:51:17 +01:00
parent bb2e48bc30
commit 4389132132
5 changed files with 53 additions and 18 deletions

View File

@@ -25,7 +25,6 @@ class NginxHandler:
print(f.read())
def setup_config_file(self, port_ip_map, current_container_ip):
placeholder_ip = os.environ.get('PLACEHOLDER_SERVER_SLEEPING_IP')
proxy_timeout = "5s"
self.stop()
print('Setting up NGINX config file...')
@@ -42,9 +41,6 @@ class NginxHandler:
nginx_conf.write(
' server 127.0.0.1:{} backup;\n'.format(port))
nginx_conf.write(
' server {}:25565 backup;\n'.format(placeholder_ip))
nginx_conf.write(' }\n')
nginx_conf.write(' server {\n')