-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
32 lines (27 loc) · 951 Bytes
/
nginx.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
server {
listen 8080;
location / {
try_files $uri $uri/ /index.html;
add_header Cache-Control public;
expires 1d;
root /app;
}
location /api {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://api-collectionmanager.apps.dbmi.cloud/v1;
}
location /coreapi {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://core-api.apps.dbmi.cloud/v1;
}
location /semapi {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://sui-demo-prism.apps.dbmi.cloud/api;
}
}