forked from kirbydesign/designsystem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
59 lines (45 loc) · 1.21 KB
/
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
##
# Your Angular.io NginX .conf
##
##
# Daemon Errors Workers
##
error_log /dev/error_log error;
worker_processes 4;
events {
worker_connections 1024;
}
http {
log_format gzip '[$time_local] ' '"$request" $status $bytes_sent';
access_log /dev/stdout;
charset utf-8;
default_type application/octet-stream;
types {
text/html html;
text/javascript js;
text/css css;
image/png png;
image/jpg jpg;
image/svg+xml svg svgz;
application/octet-steam eot;
application/octet-steam ttf;
application/octet-steam woff;
}
server {
listen 80;
sendfile on;
default_type application/octet-stream;
gzip on;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.";
gzip_min_length 256;
gzip_vary on;
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;
gzip_comp_level 9;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ /index.html =404;
}
}
}