Procházet zdrojové kódy

更新 'k8swebapi-nginx/nginx.conf'

chenghongxi před 4 roky
rodič
revize
53cc7b69d4
1 změnil soubory, kde provedl 36 přidání a 36 odebrání
  1. 36 36
      k8swebapi-nginx/nginx.conf

+ 36 - 36
k8swebapi-nginx/nginx.conf

@@ -1,37 +1,37 @@
-user                    nginx;
-worker_processes        auto;
-worker_cpu_affinity     auto;
-worker_rlimit_nofile    1048576;
-worker_shutdown_timeout 10s ;
-
-error_log               /var/log/nginx/error.log warn;
-pid                     /var/run/nginx.pid;
-
-events {
-    multi_accept        on;
-    worker_connections  65536;
-    use                 epoll;
-}
-
-http {
-    include             /etc/nginx/mime.types;
-    default_type        application/octet-stream;
-
-    log_format  main    '$remote_addr - $remote_user [$time_local] "$request" '
-                        '$status $body_bytes_sent "$http_referer" '
-                        '"$http_user_agent" "$http_x_forwarded_for" '
-                        '$upstream_addr $upstream_status $upstream_cache_status $upstream_response_time $request_time $host';
-
-    access_log           /var/log/nginx/access.log  main;
-
-    sendfile             on;
-    #tcp_nopush          on;
-
-    keepalive_timeout    65;
-
-    #gzip                on;
-    server_tokens        off;
-
-    include /etc/nginx/conf.d/*.conf;
-}
+user                    nginx;
+worker_processes        auto;
+worker_cpu_affinity     auto;
+worker_rlimit_nofile    1048576;
+worker_shutdown_timeout 10s ;
+
+error_log               /var/log/nginx/error.log warn;
+pid                     /var/run/nginx.pid;
+
+events {
+    multi_accept        on;
+    worker_connections  65536;
+    use                 epoll;
+}
+
+http {
+    include             /etc/nginx/mime.types;
+    default_type        application/octet-stream;
+
+    log_format  main    '$remote_addr - $remote_user [$time_local] "$request" '
+                        '$status $body_bytes_sent "$http_referer" '
+                        '"$http_user_agent" "$http_x_forwarded_for" '
+                        '$upstream_addr $upstream_status $upstream_cache_status $upstream_response_time $request_time $host';
+
+    access_log           /var/log/nginx/access.log  main;
+
+    sendfile             on;
+    #tcp_nopush          on;
+
+    keepalive_timeout    600;
+
+    #gzip                on;
+    server_tokens        off;
+
+    include /etc/nginx/conf.d/*.conf;
+}
 include /etc/nginx/tcp.d/*.conf;