Skip to content

Commit

Permalink
Merge pull request #198 from HSLdevcom/DT-5399_otp_databuilder
Browse files Browse the repository at this point in the history
Add routing to VARELY opentripplanner and data-container
  • Loading branch information
optionsome authored Jul 11, 2022
2 parents 4ad9796 + 09259c2 commit 026fd4a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,16 @@ location /routing/v2/routers/waltti-alt {
proxy_read_timeout 11500ms;
}

location /routing/v2/routers/varely {
rewrite /routing/v2/(.*) /otp/$1 break;
proxy_pass http://opentripplanner-varely-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/v2/routers/hsl {
rewrite /routing/v2/(.*) /otp/$1 break;
proxy_pass http://opentripplanner-hsl-v2:8080/;
Expand Down Expand Up @@ -320,6 +330,16 @@ location /routing-data/v3/waltti {
include cors.conf;
}

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

0 comments on commit 026fd4a

Please sign in to comment.