22user www-data;
33worker_processes auto;
44worker_rlimit_nofile 65535 ;
5- error_log /var/log/nginx/error.log crit ;
5+ error_log /var/log/nginx/error.log;
66pid /var/run/nginx.pid ;
77
88
@@ -19,14 +19,14 @@ http {
1919 sendfile on;
2020 tcp_nopush on;
2121 tcp_nodelay on;
22- client_header_timeout 1m ;
23- client_body_timeout 1m ;
22+ client_header_timeout 60s ;
23+ client_body_timeout 60s ;
2424 client_header_buffer_size 2k ;
2525 client_body_buffer_size 256k ;
2626 client_max_body_size 256m ;
27- large_client_header_buffers 4 8k ;
28- send_timeout 30 ;
29- keepalive_timeout 60 60 ;
27+ large_client_header_buffers 4 8k ;
28+ send_timeout 60s ;
29+ keepalive_timeout 30s ;
3030 reset_timedout_connection on;
3131 server_tokens off;
3232 server_name_in_redirect off;
@@ -50,9 +50,11 @@ http {
5050
5151 # Compression
5252 gzip on;
53- gzip_comp_level 9;
54- gzip_min_length 512 ;
55- gzip_buffers 8 64k ;
53+ gzip_static on;
54+ gzip_vary on;
55+ gzip_comp_level 6;
56+ gzip_min_length 1024 ;
57+ gzip_buffers 16 8k ;
5658 gzip_types text/plain text/css text/javascript text/js text/xml application/json application/javascript application/x-javascript application/xml application/xml+rss application/x-font-ttf image/svg+xml font/opentype;
5759 gzip_proxied any;
5860 gzip_disable "MSIE [1-6]\. " ;
@@ -63,12 +65,12 @@ http {
6365 proxy_set_header X-Real-IP $remote_addr ;
6466 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
6567 proxy_pass_header Set-Cookie;
66- proxy_connect_timeout 90 ;
67- proxy_send_timeout 90 ;
68- proxy_read_timeout 90 ;
6968 proxy_buffers 32 4k ;
69+ proxy_connect_timeout 30s ;
70+ proxy_send_timeout 90s ;
71+ proxy_read_timeout 90s ;
7072
71-
73+
7274 # Cloudflare https://www.cloudflare.com/ips
7375 set_real_ip_from 103.21.244.0 /22 ;
7476 set_real_ip_from 103.22.200.0 /22 ;
0 commit comments