Skip to content

Commit

Permalink
Merge pull request #50 from HSLdevcom/add-waltti-gtfsrt
Browse files Browse the repository at this point in the history
Add waltti gtfs-rt feeds to out proxy
  • Loading branch information
siren authored Dec 14, 2017
2 parents 4e98cc7 + 4baa877 commit 1c04841
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions external.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,63 @@ location /out/beta.liikennevirasto.fi/ {
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;
}

#kuopio gtfs rt (https://dtransit:dfki83eg@vilkku.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate)
location /out/vilkku.mattersoft.fi/ {
proxy_pass https://vilkku.mattersoft.fi/;
allow 172.17.0.0/16;
allow 10.32.0.0/16;
deny all;
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;
proxy_set_header Authorization "Basic ZHRyYW5zaXQ6ZGZraTgzZWc=";
}

#joensuu gtfs rt (https://digitransit:dtrjk23k@jojo.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate)
location /out/jojo.mattersoft.fi/ {
proxy_pass https://jojo.mattersoft.fi/;
allow 172.17.0.0/16;
allow 10.32.0.0/16;
deny all;
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;
proxy_set_header Authorization "Basic ZGlnaXRyYW5zaXQ6ZHRyamsyM2s=";
}

#lappeenranta gtfs rt (https://digitransit:dtrjk23k@lappeenranta.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate)
location /out/lappeenranta.mattersoft.fi/ {
proxy_pass https://lappeenranta.mattersoft.fi/;
allow 172.17.0.0/16;
allow 10.32.0.0/16;
deny all;
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;
proxy_set_header Authorization "Basic ZGlnaXRyYW5zaXQ6ZHRyamsyM2s=";
}

#jyvaskyla gtfs rt (https://digitransit:dtrjk23k@linkki.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate)
location /out/linkki.mattersoft.fi/ {
proxy_pass https://linkki.mattersoft.fi/;
allow 172.17.0.0/16;
allow 10.32.0.0/16;
deny all;
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;
proxy_set_header Authorization "Basic ZGlnaXRyYW5zaXQ6ZHRyamsyM2s=";
}

0 comments on commit 1c04841

Please sign in to comment.