forked from serverless-cd/ui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
31 lines (25 loc) · 868 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
30
31
# nginx -c /code/nginx.conf -g 'daemon off;'
events { worker_connections 1024; }
http {
server {
error_log /dev/stderr;
access_log /dev/stdout;
gzip on;
gzip_min_length 1k;
gzip_comp_level 2;
gzip_types text/html text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png image/svg+xml;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
include /etc/nginx/mime.types;
listen 9000;
location / {
root /code;
index index.html;
add_header Cache-Control "max-age=0";
try_files $uri $uri/ /index.html =404;
}
location ~ ^/.(images|javascript|js|css|flash|media|static)/ {
root /code;
}
}
}