mirror of
https://github.com/DerTyp7/docker_minecraft_server_auto_starter.git
synced 2025-10-29 12:42:09 +01:00
Update nginxHandler.py with worker_processes and
events configuration
This commit is contained in:
@@ -30,7 +30,11 @@ class NginxHandler:
|
||||
print('port_ip_map: {}'.format(port_ip_map))
|
||||
nginx_conf = open(self.config_path, 'w+')
|
||||
nginx_conf.truncate()
|
||||
nginx_conf.write('events { }\n')
|
||||
nginx_conf.write('worker_processes 5;\n')
|
||||
nginx_conf.write('events { \n')
|
||||
nginx_conf.write(' worker_connections 1024;\n')
|
||||
nginx_conf.write(' multi_accept on;\n')
|
||||
nginx_conf.write('}\n')
|
||||
nginx_conf.write('stream {\n')
|
||||
|
||||
# This looks confusing, but the nginx.conf looks good when it's done
|
||||
|
||||
Reference in New Issue
Block a user