forked from binary-com/deriv-com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
deriv.com.conf
139 lines (105 loc) · 3.43 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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 ~* "^/([\w]{2}|zh-tw|zh-cn)/responsible-trading" {
return 301 https://$http_host/$1/responsible/;
}
location /responsible-trading {
return 301 https://$http_host/responsible/;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/contact-us" {
return 301 https://$http_host/$1/contact-us/;
}
location /contact-us {
return 301 https://$http_host/contact-us/;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/about" {
return 301 https://$http_host/$1/who-we-are/;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/careers/besquare/" {
return 301 https://$http_host/careers/;
}
location /about {
return 301 https://$http_host/who-we-are/;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/story" {
return 301 https://$http_host/$1/who-we-are/;
}
location /story {
return 301 https://$http_host/who-we-are/;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/landing/deriv-go" {
return 301 https://$http_host/$1/deriv-go/;
}
location /landing/deriv-go {
return 301 https://$http_host/deriv-go/;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/leadership" {
return 301 https://$http_host/$1/who-we-are/;
}
location /leadership {
return 301 https://$http_host/who-we-are/;
}
location /besquare {
return 301 https://$http_host/careers/besquare/;
}
location markets+\/?$ {
return 301 https://$http_host/markets/forex/;
}
location ~* "^(/[\w]{0,2}|zh-tw|zh-cn)?/markets/?$" {
return 301 $scheme://$http_host$1/markets/forex/;
}
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 ~* "^/([\w]{2}|zh-tw|zh-cn)/academy" {
return 301 https://$http_host/academy/;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/careers" {
return 301 https://$http_host/careers/;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/careers/people-management" {
return 301 https://$http_host/$1/human-resources/;
}
location /careers/people-management {
return 301 https://$http_host/human-resources/;
}
location /careers/locations/minsk {
return 301 https://$http_host/careers/;
}
rewrite ^/en/(.*)$ https://$http_host/$1 permanent;
location ~* \.(html)$ {
add_header Cache-Control "public, max-age=0, must-revalidate";
}
location ~* \.(?:js|css)$ {
add_header Cache-Control "public, max-age=31536000, immutable";
}
location ~ (app-data\.json)$ {
add_header Cache-Control "public, max-age=0, must-revalidate";
}
location ~* \.(pdf)$ {
expires 5m;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/bug-bounty" {
return 301 https://hackerone.com/deriv?type=team;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/bug-bounty/rewards/" {
return 301 https://hackerone.com/deriv?type=team;
}
location ~* "^/([\w]{2}|zh-tw|zh-cn)/bug-bounty/vulnerabilities-types/" {
return 301 https://hackerone.com/deriv?type=team;
}
}