forked from binary-com/deriv-com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deriv.com.conf
56 lines (50 loc) · 905 Bytes
/
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
#map $http_cf_ipcountry $redirected_url {
# BE /eu;
# BG /eu;
# CZ /eu;
# DK /eu;
# DE /eu;
# EE /eu;
# IE /eu;
# EL /eu;
# ES /eu;
# FR /eu;
# HR /eu;
# IT /eu;
# CY /eu;
# LV /eu;
# LT /eu;
# LU /eu;
# HU /eu;
# MT /eu;
# NL /eu;
# AT /eu;
# PL /eu;
# PT /eu;
# RO /eu;
# SI /eu;
# SK /eu;
# FI /eu;
# SE /eu;
#}
server {
listen 80;
server_name _;
add_header Cache-Control "public, max-age=7200, s-maxage=600, must-revalidate";
add_header X-CF-IPCOUNTRY $http_cf_ipcountry;
charset UTF-8;
error_page 404 /404.html;
location @custom_error_503 {
return 503;
}
location ~ /\.git {
return 404;
}
location / {
#if ($http_cf_ipcountry) {
# rewrite ^/(.*)$ $scheme://$host$redirected_url/$1 permanent;
#}
root /usr/share/nginx/html;
index index.html index.htm;
}
}