Skip to content

Commit

Permalink
Merge pull request #261 from HSLdevcom/clean-map-v3
Browse files Browse the repository at this point in the history
Clean map v3
  • Loading branch information
vesameskanen authored Sep 27, 2024
2 parents 1bc98a6 + 28dd189 commit 81d614a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
12 changes: 1 addition & 11 deletions common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ location /map/v2/ {
}

location /map/v3/ {
# TODO use /map/v3/
rewrite /map/v3/(.*) /map/v2/$1 break;
rewrite /map/v3/(.*) /map/v3/$1 break;
proxy_pass http://hsl-map-server:8080;
proxy_cache tiles;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
Expand Down Expand Up @@ -79,15 +78,6 @@ location /map/v3/hsl/ {
proxy_set_header Accept-Language $1;
}

location /map/v3/hsl/ticket-sales-map/ {
#TODO use v3 or remove this location
rewrite /map/v3/hsl/ticket-sales-map/(.*) /map/v2/hsl-ticket-sales-map/$1 break;
proxy_pass http://hsl-map-server:8080;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location ~ ^/map/v3/waltti/(.*)/tilejson.json$ {
rewrite /map/v3/waltti/([^\/]*)/(.*) /otp/routers/waltti/vectorTiles/$2 break;
proxy_pass http://opentripplanner-waltti-v2:8080;
Expand Down
1 change: 0 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ describe('api.digitransit.fi', function() {
//testCaching('api.digitransit.fi','/realtime/trip-updates/v1/foo', false)
testProxying('api.digitransit.fi','/map/v2/','hsl-map-server:8080');
testProxying('api.digitransit.fi','/map/v3/hsl-map/','hsl-map-server:8080');
testProxying('api.digitransit.fi','/map/v3/hsl/ticket-sales-map/','hsl-map-server:8080');
testProxying('api.digitransit.fi','/map/v3-kela/kela/en/rental-stations/','opentripplanner-kela-v2:8080');
testProxying('dev-api.digitransit.fi','/routing/v2-kela/routers/kela/index/graphql','opentripplanner-kela-v2:8080');
testProxying('api.digitransit.fi','/ui/v3/matka/sw.js','digitransit-ui-matka-v3:8080');
Expand Down

0 comments on commit 81d614a

Please sign in to comment.