diff --git a/external.conf b/external.conf index 5bb98f4..e534ed9 100644 --- a/external.conf +++ b/external.conf @@ -138,6 +138,19 @@ location /out/tre.mattersoft.fi/ { proxy_set_header Authorization NEW_LISSU_BASIC_AUTH; } +#tampere trip updates (https://lissu.tampere.fi/api/gtfsrealtime/v2.0/feed/tripupdate) +location /out/lissu.tampere.fi/ { + proxy_pass https://lissu.tampere.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; + proxy_set_header Authorization NEW_LISSU_BASIC_AUTH; +} + #tampere test gtfs rt (https://nysse.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealerts and vehiclepositions) location /out/nysse.mattersoft.fi/ { proxy_pass https://nysse.mattersoft.fi/;