-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnginx.conf
51 lines (45 loc) · 1.87 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
server {
listen 80;
index index.html index.html;
server_name json-server;
resolver 127.0.0.11;
location /anon_zone/ {
set $deg_ballot_url deg_ballot:8003;
proxy_pass http://deg_ballot:8003/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /js {
proxy_pass http://localhost/anon_zone/js;
}
location /css {
proxy_pass http://localhost/anon_zone/css;
}
location /images {
proxy_pass http://localhost/anon_zone/images;
}
location /api {
proxy_pass http://localhost/anon_zone/api;
}
location /arm {
proxy_pass http://fake_arm;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
set $deg_form_url deg_form:8004;
proxy_pass http://$deg_form_url;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /oauth {
set $fake_sudir_url fake_sudir:80;
proxy_pass http://$fake_sudir_url;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}