generated from Lucasmiguelmac/bw-frontend-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf
34 lines (26 loc) · 758 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
32
33
34
server {
listen 80;
gzip on;
gzip_vary on;
gzip_min_length 10240;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/javascript application/xml;
gzip_disable "MSIE [1-6]\.";
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location =/index.html {
root /usr/share/nginx/html;
add_header "Cache-Control" "no-cache";
}
location ~* \.(js|css|svg|png|gif)$ {
root /usr/share/nginx/html;
add_header "Cache-Control" "max-age=31536000";
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}