rabin 1 year ago
parent
commit
1dc1e66624
1 changed files with 11 additions and 2 deletions
  1. 11 2
      container/conf/web/nginx/nginx.conf

+ 11 - 2
container/conf/web/nginx/nginx.conf

@@ -8,6 +8,8 @@ pid        /run/nginx.pid;
 worker_rlimit_nofile 65535;
 events {
     worker_connections  65535;
+    multi_accept        on;
+    use                 epoll;
 }
 
 
@@ -21,8 +23,15 @@ http {
 
     access_log  /var/log/nginx/access.log  main;
 
-    sendfile        off;
-    #tcp_nopush     on;
+    # proxy
+    upstream backend  {
+        server 127.0.0.1:80;
+    }
+    proxy_cache_path /tmp/cache levels=1:2 keys_zone=cache:60m max_size=1G;
+
+    sendfile on;
+    tcp_nopush on;
+    tcp_nodelay on;
 
     keepalive_timeout  6500;
     fastcgi_connect_timeout 8000;