nginx.conf 657 Bytes
Newer Older
jcorvi's avatar
jcorvi committed
1
worker_processes  1;
jcorvi's avatar
jcorvi committed
2
error_log  /var/log/nginx/error.log debug;
jcorvi's avatar
jcorvi committed
3
4
5
6
7
8

events {
    worker_connections  1024;
}

http {
jcorvi's avatar
jcorvi committed
9
10
11
12
    server {
        listen 80;
        server_name  localhost;

jcorvi's avatar
jcorvi committed
13
        root   /usr/share/nginx/html;
jcorvi's avatar
jcorvi committed
14
15
        index  index.html index.htm;
        include /etc/nginx/mime.types;
jcorvi's avatar
jcorvi committed
16

jcorvi's avatar
jcorvi committed
17
18
19
20
        gzip on;
        gzip_min_length 1000;
        gzip_proxied expired no-cache no-store private auth;
        gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
jcorvi's avatar
jcorvi committed
21

jcorvi's avatar
jcorvi committed
22
        location / {
jcorvi's avatar
jcorvi committed
23
24
            try_files $uri $uri/ /index.html;
        }
jcorvi's avatar
jcorvi committed
25
    }
jcorvi's avatar
jcorvi committed
26
27
28
}


jcorvi's avatar
jcorvi committed
29