forked from HSLdevcom/digitransit-proxy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.conf
57 lines (55 loc) · 2.16 KB
/
common.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
56
57
#location /geocoding/v1/ {
# rewrite /geocoding/v1/(.*) /v1/$1 break;
# set $backend_pelias "http://pelias-api:8080/";
# proxy_pass $backend_pelias;
# proxy_cache geocoding;
# proxy_cache_valid 3d;
# proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
# add_header X-Proxy-Cache $upstream_cache_status;
# proxy_redirect off;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Host $host;
#}
#
#location /map/v1/ {
# set $backend_map "http://hsl-map-server:8080";
# proxy_pass $backend_map;
# proxy_cache tiles;
# proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
# proxy_cache_revalidate on;
# proxy_cache_lock on;
# proxy_redirect off;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Host $host;
# add_header X-Cache-Status $upstream_cache_status;
#}
#
#location /graphiql/ {
# set $backend_graphiql "http://graphiql:8080";
# proxy_pass $backend_graphiql;
# proxy_redirect off;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Host $host;
#}
location /routing/v1/routers/hsl {
rewrite /routing/v1/(.*) /otp/$1 break;
set $backend_otp "http://opentripplanner-hsl:8080/";
proxy_pass $backend_otp;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
}
location /routing-data/v2/hsl {
rewrite /routing-data/v2/hsl/(.*) /$1 break;
set $backend_data_con "http://opentripplanner-data-con-hsl:8080/";
proxy_pass $backend_data_con;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
include cors.conf;
}