Skip to content

Commit a86ca71

Browse files
authored
Update nginx.conf
1 parent 2be111c commit a86ca71

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

Files/Nginx/nginx.conf

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,33 @@
11
user www-data;
2-
32
worker_processes 1;
43
pid /var/run/nginx.pid;
5-
64
events {
75
multi_accept on;
8-
worker_connections 1024;
6+
worker_connections 1024;
97
}
10-
118
http {
129
gzip on;
1310
gzip_vary on;
1411
gzip_comp_level 5;
15-
gzip_types text/plain application/x-javascript text/xml text/css;
16-
12+
gzip_types text/plain application/x-javascript text/xml text/css;
1713
autoindex on;
18-
sendfile on;
19-
tcp_nopush on;
20-
tcp_nodelay on;
21-
keepalive_timeout 65;
22-
types_hash_max_size 2048;
23-
server_tokens off;
24-
include /etc/nginx/mime.types;
25-
default_type application/octet-stream;
26-
access_log /var/log/nginx/access.log;
27-
error_log /var/log/nginx/error.log;
28-
client_max_body_size 32M;
14+
sendfile on;
15+
tcp_nopush on;
16+
tcp_nodelay on;
17+
keepalive_timeout 65;
18+
types_hash_max_size 2048;
19+
server_tokens off;
20+
include /etc/nginx/mime.types;
21+
default_type application/octet-stream;
22+
access_log /var/log/nginx/access.log;
23+
error_log /var/log/nginx/error.log;
24+
client_max_body_size 32M;
2925
client_header_buffer_size 8m;
3026
large_client_header_buffers 8 8m;
31-
3227
fastcgi_buffer_size 8m;
3328
fastcgi_buffers 8 8m;
34-
3529
fastcgi_read_timeout 600;
36-
37-
set_real_ip_from 204.93.240.0/24;
38-
set_real_ip_from 204.93.177.0/24;
30+
#CloudFlare IPv4
3931
set_real_ip_from 199.27.128.0/21;
4032
set_real_ip_from 173.245.48.0/20;
4133
set_real_ip_from 103.21.244.0/22;
@@ -47,7 +39,15 @@ http {
4739
set_real_ip_from 188.114.96.0/20;
4840
set_real_ip_from 197.234.240.0/22;
4941
set_real_ip_from 198.41.128.0/17;
50-
real_ip_header CF-Connecting-IP;
51-
52-
include /etc/nginx/conf.d/*.conf;
53-
}
42+
set_real_ip_from 162.158.0.0/15;
43+
set_real_ip_from 104.16.0.0/12;
44+
#Incapsula
45+
set_real_ip_from 199.83.128.0/21;
46+
set_real_ip_from 198.143.32.0/19;
47+
set_real_ip_from 149.126.72.0/21;
48+
set_real_ip_from 103.28.248.0/22;
49+
set_real_ip_from 45.64.64.0/22;
50+
set_real_ip_from 185.11.124.0/22;
51+
set_real_ip_from 192.230.64.0/18;
52+
real_ip_header CF-Connecting-IP;
53+
include /etc/nginx/conf.d/*.conf;

0 commit comments

Comments
 (0)