X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=openresty-ext%2Fsrc%2Fassembly%2Fresources%2Fopenresty%2Fnginx%2Fconf%2Fnginx.conf;h=a340aa80fec15a55411fa3b96e928d726945bd00;hb=07a9c52f6bcc44c7d65160fb5ee573be7ca533b5;hp=c51d10a8416436dbd63d41780d9314aca03fc858;hpb=672f3d40be83d9e380fd7be4b674d5e8d5fa36de;p=msb%2Fapigateway.git diff --git a/openresty-ext/src/assembly/resources/openresty/nginx/conf/nginx.conf b/openresty-ext/src/assembly/resources/openresty/nginx/conf/nginx.conf index c51d10a..a340aa8 100644 --- a/openresty-ext/src/assembly/resources/openresty/nginx/conf/nginx.conf +++ b/openresty-ext/src/assembly/resources/openresty/nginx/conf/nginx.conf @@ -1,5 +1,5 @@ # -# Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE) +# Copyright (C) 2017-2018 ZTE, Inc. and others. All rights reserved. (ZTE) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,7 +18,7 @@ worker_processes 8; worker_rlimit_nofile 65535; -error_log logs/error.log warn; +error_log logs/error.log info; pid logs/nginx.pid; env ROUTER_SUBDOMAIN; @@ -29,7 +29,7 @@ events { #there is normally no need to specify the following directive explicitly #use epoll; worker_connections 10000; - multi_accept on; + multi_accept off; } http { @@ -59,8 +59,10 @@ http { #open_file_cache_errors on; gzip on; - gzip_min_length 1000; - gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml; + gzip_min_length 1k; + gzip_buffers 4 16k; + gzip_comp_level 2; + gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml; include ../msb-enabled/*.conf; include ../sites-enabled/*.conf;