-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
56 lines (49 loc) · 1.62 KB
/
nginx.conf
File metadata and controls
56 lines (49 loc) · 1.62 KB
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
56
events {
}
http {
server {
listen 8087;
# Get all Route Ids of the bus network
location /getAllRouteIds {
proxy_pass http://visualize-current-state-svc:3812;
}
# Get the Long name of a given route
location /getRouteLongName {
proxy_pass http://visualize-current-state-svc:3812$request_uri;
}
# Get all trips (trip_id) of a given route (route_id)
# v1
location /getTripIds/(\d+)$ {
proxy_pass http://visualize-current-state-svc:3812/getTripIds/$1;
}
# v2
location /getTripIds {
proxy_pass http://visualize-current-state-svc:3812$request_uri;
}
# Get all stops (stop_id) of a given trip (trip_id)
# v1
location /getStopIds/(\d+)$ {
proxy_pass http://visualize-current-state-svc:3812/getStopIds/$1;
}
# v2
location /getStopIds {
proxy_pass http://visualize-current-state-svc:3812$request_uri;
}
# Get all information of a give bus stop
# v1
location /getStop/(\d+)$ {
proxy_pass http://visualize-current-state-svc:3812/getStop/$1;
}
# v2
location /getStop {
proxy_pass http://visualize-current-state-svc:3812$request_uri;
}
# Get the coordinates of a given bus stop
location /getStopCoordinates {
proxy_pass http://visualize-current-state-svc:3812$request_uri;
}
# location ~ ^/get(.*)$ {
# proxy_pass http://visualize-current-state-svc:3812$1;
# }
}
}