forked from aave/aave-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.conf
35 lines (30 loc) · 1.01 KB
/
default.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
# vim:syn=nginx
map $http_origin $ac_allow_origin {
default "https://polygon.gnosis-safe.io";
"https://gnosis-safe.io" "https://gnosis-safe.io";
"https://app.dhedge.org" "https://app.dhedge.org";
}
server {
listen 3000;
keepalive_timeout 65;
charset utf-8;
proxy_read_timeout 1000s;
server_tokens off;
gzip on;
gzip_min_length 1000;
gzip_types text/plain
application/xml application/xml+rss text/xml
application/css application/x-css text/css
application/json appication/x-json text/json
application/javascript application/x-javascript text/javascript;
add_header Referrer-Policy "strict-origin-when-cross-origin";
add_header Content-Security-Policy "frame-ancestors https://polygon.gnosis-safe.io https://gnosis-safe.io https://app.dhedge.org;";
add_header Access-Control-Allow-Origin $ac_allow_origin;
add_header Access-Control-Allow-Methods "GET, OPTIONS";
location / {
root /server_root/;
index index.html;
expires 15s;
try_files $uri $uri/ /index.html;
}
}