]> jfr.im git - uguu.git/blob - templates/nginx_confs/nginx.conf
Update README.md
[uguu.git] / templates / nginx_confs / nginx.conf
1 user www-data;
2 worker_processes auto;
3 pid /run/nginx.pid;
4 include /etc/nginx/modules-enabled/*.conf;
5
6 events {
7 worker_connections 4096;
8 multi_accept on;
9 use epoll;
10
11 }
12
13 http {
14
15 ##
16 # Basic Settings
17 ##
18
19 sendfile on;
20 tcp_nopush on;
21 tcp_nodelay on;
22 keepalive_timeout 10;
23 types_hash_max_size 2048;
24 server_tokens off;
25 client_max_body_size 128m;
26
27 ##
28 # Mime Settings
29 ##
30
31 include /etc/nginx/mime.types;
32 default_type application/octet-stream;
33
34 ##
35 # Logging Settings
36 ##
37
38 #access_log /var/log/nginx/access.log;
39 #error_log /var/log/nginx/error.log;
40 error_log off;
41 access_log off;
42
43 ##
44 # Gzip Settings
45 ##
46
47 #gzip off;
48 #gzip_vary on;
49 #gzip_proxied any;
50 #gzip_comp_level 6;
51 #gzip_buffers 16 8k;
52 #gzip_http_version 1.1;
53 #gzip_types application/javascript application/rss+xml application/vnd.ms-fontobject application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf application/x-javascript application/xhtml+xml application/xml font/opentype font/otf font/ttf image/svg+xml image/x-icon text/css text/javascript text/xml;
54
55 ##
56 # Virtual Host Configs
57 ##
58
59 include /etc/nginx/conf.d/*.conf;
60 include /etc/nginx/sites-enabled/*;
61 }