forked from icarda-git/M-QAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.conf
55 lines (48 loc) · 1.63 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header Content-Security-Policy "frame-ancestors 'self' https://*.cgiar.org";
add_header X-XSS-Protection "1; mode=block";
client_max_body_size 9200M;
server_tokens off;
proxy_hide_header X-Powered-By;
proxy_cookie_path / "/; HTTPOnly; Secure";
upstream api.wos.loc {
server clarisa_wos_api:3000;
}
upstream front.wos.loc {
server clarisa_wos_front_end:80;
}
server {
server_name default_server;
listen 80;
location ~ ^/api/(.*)$ {
proxy_set_header XForwardedFor $remote_addr;
proxy_pass http://api.wos.loc/$1$is_args$args;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header Referer $http_referer;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 6m;
proxy_send_timeout 6m;
proxy_read_timeout 6m;
send_timeout 6m;
client_max_body_size 100M;
}
location / {
proxy_set_header XForwardedFor $remote_addr;
proxy_pass http://front.wos.loc/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header Referer $http_referer;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 6m;
proxy_send_timeout 6m;
proxy_read_timeout 6m;
send_timeout 6m;
client_max_body_size 100M;
}
}