diff --git a/external.conf b/external.conf index 2565393..5605041 100644 --- a/external.conf +++ b/external.conf @@ -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="; +} \ No newline at end of file