-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathliara_nginx.conf
39 lines (33 loc) · 1.1 KB
/
liara_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
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
add_header X-Frame-Options DENY always;
add_header X-Content-Type-Options: nosniff;
add_header X-XSS-Protection "1; mode=block" always;
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
location / {
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
location ~ /\.well-known {
allow all;
}
# cache.appcache, your document html and data
# location ~* \.(?:manifest|appcache|html?|xml|json)$ {
# expires -1;
# }
# Media: images, icons, video, audio, HTC
# location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
# expires 1M;
# access_log off;
# add_header Cache-Control "public";
# }
# CSS, Javascript and Fonts
# location ~* \.(?:css|js|otf|ttf|eot|woff|woff2)$ {
# expires 1y;
# access_log off;
# add_header Cache-Control "public";
# }