Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aggvpn
GitHub Repository: aggvpn/ws
Path: blob/main/nginx.conf
567 views
1
user www-data;
2
3
worker_processes 1;
4
pid /var/run/nginx.pid;
5
6
events {
7
multi_accept on;
8
worker_connections 1024;
9
}
10
11
http {
12
gzip on;
13
gzip_vary on;
14
gzip_comp_level 5;
15
gzip_types text/plain application/x-javascript text/xml text/css;
16
17
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;
29
client_header_buffer_size 8m;
30
large_client_header_buffers 8 8m;
31
32
fastcgi_buffer_size 8m;
33
fastcgi_buffers 8 8m;
34
35
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;
39
set_real_ip_from 199.27.128.0/21;
40
set_real_ip_from 173.245.48.0/20;
41
set_real_ip_from 103.21.244.0/22;
42
set_real_ip_from 103.22.200.0/22;
43
set_real_ip_from 103.31.4.0/22;
44
set_real_ip_from 141.101.64.0/18;
45
set_real_ip_from 108.162.192.0/18;
46
set_real_ip_from 190.93.240.0/20;
47
set_real_ip_from 188.114.96.0/20;
48
set_real_ip_from 197.234.240.0/22;
49
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
}
54
55