cull conf and ad correct startup
This commit is contained in:
		@@ -1,47 +1,40 @@
 | 
			
		||||
	# - Global Server Options -
 | 
			
		||||
worker_processes auto;
 | 
			
		||||
worker_cpu_affinity auto;
 | 
			
		||||
worker_rlimit_nofile 204800;
 | 
			
		||||
error_log /var/log/nginx/error.log warn;
 | 
			
		||||
 | 
			
		||||
		worker_processes auto;
 | 
			
		||||
		worker_cpu_affinity auto;
 | 
			
		||||
		worker_rlimit_nofile 204800;
 | 
			
		||||
		error_log /var/log/nginx/error.log warn;
 | 
			
		||||
events {
 | 
			
		||||
  worker_connections 1024;
 | 
			
		||||
  use epoll;
 | 
			
		||||
  multi_accept on;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
	# - Global Server Events -
 | 
			
		||||
		events {
 | 
			
		||||
http {
 | 
			
		||||
  log_format main '$remote_addr - $remote_user [$time_local] "$request" '
 | 
			
		||||
                  '$status $body_bytes_sent "$http_referer" '
 | 
			
		||||
							    '"$http_user_agent" "$http_x_forwarded_for"';
 | 
			
		||||
 | 
			
		||||
			worker_connections 1024;
 | 
			
		||||
			use epoll;
 | 
			
		||||
			multi_accept on;
 | 
			
		||||
  access_log off;
 | 
			
		||||
  server_tokens off;
 | 
			
		||||
 | 
			
		||||
		}
 | 
			
		||||
  include mime.types;
 | 
			
		||||
  default_type application/octet-stream;
 | 
			
		||||
 | 
			
		||||
	# - HTTP Protocol Settings -
 | 
			
		||||
		http {
 | 
			
		||||
  tcp_nopush on;
 | 
			
		||||
  tcp_nodelay on;
 | 
			
		||||
  gzip on;
 | 
			
		||||
 | 
			
		||||
			log_format  main	'$remote_addr - $remote_user [$time_local] "$request" '
 | 
			
		||||
                      			'$status $body_bytes_sent "$http_referer" '
 | 
			
		||||
								'"$http_user_agent" "$http_x_forwarded_for"';
 | 
			
		||||
  client_max_body_size 1M;
 | 
			
		||||
  keepalive_timeout 65;
 | 
			
		||||
  keepalive_requests 102400;
 | 
			
		||||
  reset_timedout_connection on;
 | 
			
		||||
  client_body_timeout 10;
 | 
			
		||||
  send_timeout 5;
 | 
			
		||||
 | 
			
		||||
			access_log off;
 | 
			
		||||
			server_tokens off;
 | 
			
		||||
  open_file_cache max=204800 inactive=20s;
 | 
			
		||||
  open_file_cache_valid 60s;
 | 
			
		||||
  open_file_cache_min_uses 2;
 | 
			
		||||
  open_file_cache_errors on;
 | 
			
		||||
 | 
			
		||||
			include mime.types;
 | 
			
		||||
			default_type application/octet-stream;
 | 
			
		||||
 | 
			
		||||
			tcp_nopush on;
 | 
			
		||||
			tcp_nodelay on;
 | 
			
		||||
			gzip on;
 | 
			
		||||
 | 
			
		||||
			client_max_body_size 1M;
 | 
			
		||||
			keepalive_timeout 65;
 | 
			
		||||
			keepalive_requests 102400;
 | 
			
		||||
			reset_timedout_connection on;
 | 
			
		||||
			client_body_timeout 10;
 | 
			
		||||
			send_timeout 5;
 | 
			
		||||
 | 
			
		||||
			open_file_cache max=204800 inactive=20s;
 | 
			
		||||
			open_file_cache_valid 60s;
 | 
			
		||||
			open_file_cache_min_uses 2;
 | 
			
		||||
			open_file_cache_errors on;
 | 
			
		||||
 | 
			
		||||
			include /nginx/etc/*.conf;
 | 
			
		||||
		}
 | 
			
		||||
  include /nginx/etc/*.conf;
 | 
			
		||||
}
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
if [ -z "$1" ]; then
 | 
			
		||||
    set -- "nginx" \
 | 
			
		||||
        -g \
 | 
			
		||||
        daemon off
 | 
			
		||||
        'daemon off;'
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
exec "$@"
 | 
			
		||||
		Reference in New Issue
	
	Block a user