aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nginx/files/nginx.conf
blob: 1ec0ea6f46ae831d8195c9a2f015e4e61e63b7f0 (plain)
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
#
# /etc/nginx/nginx.conf
#

user  www-data;
worker_processes  auto;

events {
    worker_connections  1024;
}

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

    sendfile       on;
    tcp_nopush     on;
    tcp_nodelay    on;

    server_names_hash_bucket_size  64;
    types_hash_max_size   2048;
    client_max_body_size  10M;

    keepalive_timeout  65;

    gzip on;
    gzip_types text/css text/xml text/plain application/x-javascript application/atom+xml application/rss+xml;

    autoindex on;
    index index.html index.htm;

    include /etc/nginx/sites-enabled/*;
}