Skip to content

Commit

Permalink
Merge pull request #202 from HSLdevcom/next-cleanup
Browse files Browse the repository at this point in the history
Remove deprecated next-waltti and next-map endpoints
  • Loading branch information
optionsome authored Sep 15, 2022
2 parents 801a2e7 + f973b0d commit d4378ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
34 changes: 0 additions & 34 deletions common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,6 @@ location /realtime/raildigitraffic2gtfsrt/v1/ {
# proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
}

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;
}

location /map/v1/ {
proxy_pass http://hsl-map-server:8080;
proxy_cache tiles;
Expand Down Expand Up @@ -270,16 +256,6 @@ location /routing/v2/routers/hsl {
proxy_read_timeout 11500ms;
}

location /routing/v1/routers/next-waltti {
rewrite /routing/v1/routers/next-waltti(.*) /otp/routers/default$1 break;
proxy_pass http://opentripplanner-waltti-alt-v2:8080/;
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;
proxy_read_timeout 11500ms;
}

location /routing-data/v2/hsl {
rewrite /routing-data/v2/hsl/(.*) /$1 break;
proxy_pass http://opentripplanner-data-con-hsl:8080/;
Expand Down Expand Up @@ -360,16 +336,6 @@ location /routing-data/v3/finland {
include cors.conf;
}

location /routing-data/v2/next-waltti {
rewrite /routing-data/v2/next-waltti/(.*) /$1 break;
proxy_pass http://opentripplanner-data-con-waltti-alt-v3:8080/;
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;
}

location /ui/v1/finland/ {
rewrite /ui/v1/finland/(.*) /$1 break;
proxy_pass http://digitransit-ui-matka-v2:8080;
Expand Down
4 changes: 0 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ describe('api.digitransit.fi', function() {
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/v2/','hsl-map-server:8080');
testProxying('api.digitransit.fi','/routing/v1/routers/finland','opentripplanner-finland:8080');
testProxying('api.digitransit.fi','/routing/v1/routers/hsl','opentripplanner-hsl:8080');
Expand All @@ -128,7 +127,6 @@ describe('api.digitransit.fi', function() {
testProxying('dev-api.digitransit.fi','/routing/v2/routers/hsl','opentripplanner-hsl-v2:8080');
testProxying('dev-api.digitransit.fi','/routing/v2/routers/waltti','opentripplanner-waltti-v2:8080');
testProxying('dev-api.digitransit.fi','/routing/v2/routers/waltti-alt','opentripplanner-waltti-alt-v2:8080');
testProxying('dev-api.digitransit.fi','/routing/v1/routers/next-waltti','opentripplanner-waltti-alt-v2:8080');
testProxying('api.digitransit.fi','/routing-data/v2/hsl/router-hsl.zip','opentripplanner-data-con-hsl:8080');
testResponseHeader('api.digitransit.fi','/routing-data/v2/hsl/router-config.json', 'access-control-allow-origin', '*');
testProxying('api.digitransit.fi','/routing-data/v2/waltti/router-waltti.zip','opentripplanner-data-con-waltti:8080');
Expand All @@ -143,8 +141,6 @@ describe('api.digitransit.fi', function() {
testResponseHeader('dev-api.digitransit.fi','/routing-data/v3/waltti-alt/router-config.json', 'access-control-allow-origin', '*');
testProxying('dev-api.digitransit.fi','/routing-data/v3/finland/router-finland.zip','opentripplanner-data-con-finland-v3:8080');
testResponseHeader('dev-api.digitransit.fi','/routing-data/v3/finland/router-config.json', 'access-control-allow-origin', '*');
testProxying('dev-api.digitransit.fi','/routing-data/v2/next-waltti/router-waltti.zip','opentripplanner-data-con-waltti-alt-v3:8080');
testResponseHeader('dev-api.digitransit.fi','/routing-data/v2/next-waltti/router-config.json', 'access-control-allow-origin', '*');
testProxying('api.digitransit.fi','/ui/v1/finland/sw.js','digitransit-ui-matka-v2:8080');
testProxying('api.digitransit.fi','/ui/v1/hsl-next/sw.js','digitransit-ui-hsl-v2:8080');
testProxying('api.digitransit.fi','/ui/v1/waltti-next/sw.js','digitransit-ui-waltti-v2:8080');
Expand Down

0 comments on commit d4378ec

Please sign in to comment.