-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
29 lines (22 loc) · 954 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
http {
server {
listen 80;
listen [::]:80;
underscores_in_headers on;
location /time-entries {
proxy_pass_request_headers on;
add_header "Access-Control-Allow-Origin" *;
add_header "Access-Control-Allow-Methods" "GET, POST";
add_header "Access-Control-Allow-Headers" "Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Redmine-Api-Key";
proxy_pass https://cors-anywhere.herokuapp.com/https://dev.unosquare.com/redmine/time_entries.json;
}
location /projects {
proxy_pass_request_headers on;
add_header "Access-Control-Allow-Origin" *;
add_header "Access-Control-Allow-Methods" "GET, POST";
add_header "Access-Control-Allow-Headers" "Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Redmine-Api-Key";
proxy_pass https://cors-anywhere.herokuapp.com/https://dev.unosquare.com/redmine/projects.json;
}
}
}
events {}