forked from binary-com/deriv-com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deriv.com.conf
63 lines (47 loc) · 1.38 KB
/
deriv.com.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
60
61
62
63
server {
listen 80;
server_name _;
charset UTF-8;
error_page 403 404 /404.html;
root /usr/share/nginx/html;
index index.html index.htm;
location @custom_error_503 {
return 503;
}
location ~ /\.git {
return 404;
}
location /responsible-trading {
return 301 https://$http_host/responsible/;
}
location /contact-us {
return 301 https://$http_host/contact_us/;
}
location /besquare {
return 301 https://$http_host/careers/besquare/;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/careers" {
return 301 https://$http_host/careers/;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/academy" {
return 301 https://$http_host/academy/;
}
location = /sw.js {
add_header Cache-Control "public, max-age=0, must-revalidate";
}
location ~* \.(html)$ {
add_header Cache-Control "public, max-age=0, must-revalidate";
}
location ~ (app-data\.json)$ {
add_header Cache-Control "public, max-age=0, must-revalidate";
}
location /page-data {
add_header Cache-Control "public, max-age=0, must-revalidate";
}
location /static {
add_header Cache-Control "public, max-age=31536000, immutable";
}
location ~* \.(?:js|css)$ {
add_header Cache-Control "public, max-age=31536000, immutable";
}
}