From 09259c22f421753e04c0409d99ffaaa8eb605f13 Mon Sep 17 00:00:00 2001 From: Joona Ojapalo Date: Mon, 11 Jul 2022 12:12:10 +0300 Subject: [PATCH] Add routing to VARELY opentripplanner and data-builder --- common.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/common.conf b/common.conf index 1551e5a..2370c0d 100644 --- a/common.conf +++ b/common.conf @@ -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/; @@ -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/;