-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
29 lines (27 loc) · 833 Bytes
/
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
server {
listen 80;
location ~* sitemap-(category|product|article|page)\.xml$ {
root /app/media/sitemaps;
}
location /sitemap.xml {
root /app/media/sitemaps;
}
location /robots.txt {
alias /app/robots.txt;
}
location /static/ {
alias /app/static/;
}
location /media/ {
alias /app/media/;
}
location ~* \.(rss|atom|jpg|jpeg|gif|png|ico|rtf|css|webp|js|svg|woff)$ {
root /app;
expires max;
add_header Cache-Control "public, no-transform";
}
gzip on;
gzip_disable "msie6";
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/bmp image/png image/gif image/jpeg image/jpg;
gzip_comp_level 5;
}