Skip to content

Commit

Permalink
Temporarily disable map api
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Oct 1, 2021
1 parent 40336c4 commit 99ed076
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
23 changes: 2 additions & 21 deletions common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -133,30 +133,11 @@ location /realtime/raildigitraffic2gtfsrt/v1/ {
}

location /map/v1/next- {
rewrite /map/v1/next-(.*) /map/v1/$1 break;
proxy_pass http://hsl-map-server-next:8080;
# 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;
return 500;
}

location /map/v1/ {
proxy_pass http://hsl-map-server:8080;
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;
return 500;
}

location /graphiql/ {
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ describe('api.digitransit.fi', function() {
// testCaching('api.digitransit.fi','/realtime/vehicle-positions/v1/foo',false);
testProxying('api.digitransit.fi','/realtime/raildigitraffic2gtfsrt/v1/','raildigitraffic2gtfsrt:8080');
//testCaching('api.digitransit.fi','/realtime/raildigitraffic2gtfsrt/v1/foo',true);
testProxying('api.digitransit.fi','/map/v1/','hsl-map-server:8080');
testProxying('api.digitransit.fi','/map/v1/next-hsl-map/index.json','hsl-map-server-next:8080');
// testProxying('api.digitransit.fi','/map/v1/','hsl-map-server:8080');
// testProxying('api.digitransit.fi','/map/v1/next-hsl-map/index.json','hsl-map-server-next:8080');
testProxying('api.digitransit.fi','/routing/v1/routers/finland','opentripplanner-finland:8080');
testProxying('api.digitransit.fi','/routing/v1/routers/hsl','opentripplanner-hsl:8080');
testProxying('api.digitransit.fi','/routing/v1/routers/waltti','opentripplanner-waltti:8080');
Expand Down

0 comments on commit 99ed076

Please sign in to comment.