2 # Copyright (C) 2017-2018 ZTE, Inc. and others. All rights reserved. (ZTE)
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 worker_rlimit_nofile 65535;
21 error_log logs/error.log warn;
25 env HTTP_OVERWRITE_PORT;
26 env HTTPS_OVERWRITE_PORT;
29 #there is normally no need to specify the following directive explicitly
31 worker_connections 10000;
37 #default_type text/html;
39 log_format main '$remote_addr - $remote_user [$time_local] $request_id "$request" '
40 '$status request_processing_time:$request_time upstream_response_time:$upstream_response_time '
41 '"$http_referer" "$http_user_agent" "$http_x_forwarded_for"';
43 access_log logs/access.log main;
52 keepalive_timeout 120s;
53 keepalive_requests 200;
54 types_hash_max_size 2048;
56 #open_file_cache max=200000 inactive=300s;
57 #open_file_cache_valid 300s;
58 #open_file_cache_min_uses 2;
59 #open_file_cache_errors on;
65 gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml;
67 include ../msb-enabled/*.conf;
68 include ../sites-enabled/*.conf;
69 include ../sites-enabled-mount/*.conf;
73 include ../stream-enabled/*.conf;