Skip to content

Commit

Permalink
Merge pull request #124 from HSLdevcom/matka.fi-gtfsrt-relocation2
Browse files Browse the repository at this point in the history
chore: Added old beta.vayla.fi proxy for easier migration
  • Loading branch information
vesameskanen authored Mar 4, 2020
2 parents 84515ff + 1b43b2e commit 34a41e1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions external.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ location /out/92.62.36.215/ {
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
}

# Old Livi GTFS-RT for easier migration
location /out/beta.vayla.fi/ {
proxy_pass https://beta.vayla.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
}

#new livi gtfs rt (https://tyokalu.navici.com/joukkoliikenne/manual-gtfsrt/api/gtfsrt/alerts)
location /out/tyokalu.navici.com/ {
proxy_pass https://tyokalu.navici.com/;
Expand Down

0 comments on commit 34a41e1

Please sign in to comment.