cirandas.net-etc

ref: main

nginx/nginx.conf


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
user www-data;
worker_processes  4;

error_log  /var/log/nginx/error.log;
pid        /var/run/nginx.pid;

events {
  worker_connections  1024;
}

http {

  include       /etc/nginx/mime.types;
  default_type  application/octet-stream;


  access_log    /var/log/nginx/access.log;

  sendfile on;
  tcp_nopush on;
  tcp_nodelay on;

  keepalive_requests 100;
  keepalive_timeout  300;


  gzip  on;
  gzip_http_version 1.0;
  gzip_comp_level 2;
  gzip_proxied any;
  gzip_vary off;
  gzip_types text/plain text/css application/x-javascript text/xml application/xml application/rss+xml application/atom+xml text/javascript application/javascript application/json text/mathml;
  gzip_min_length  1000;
  gzip_disable     "MSIE [1-6]\.";


  variables_hash_max_size 1024;
  variables_hash_bucket_size 64;
  server_names_hash_bucket_size 64;
  types_hash_max_size 2048;
  types_hash_bucket_size 64;
  client_max_body_size 0;


  large_client_header_buffers 4 16k;
  proxy_connect_timeout 600;
  proxy_send_timeout 600;
  proxy_read_timeout 600;
  send_timeout 60;
  proxy_temp_path /var/tmp/nginx_proxy;
  proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=main:100m inactive=30d max_size=500m;
  proxy_cache_key $scheme$host$uri$is_args$args;

  include /etc/nginx/conf.d/http_geoip.conf;
  include /etc/nginx/conf.d/http_gzip_static.conf;
  include /etc/nginx/conf.d/cirandas-upstream.conf;
  include /etc/nginx/http.d/*.conf;
  #include /etc/nginx/sites-enabled/*;
}