Skip to content

Commit

Permalink
Remove proxy for new park api
Browse files Browse the repository at this point in the history
digitraffic services do not like our nginx proxy
  • Loading branch information
vesameskanen committed May 30, 2024
1 parent d2fc0c2 commit 1085461
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions external.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,6 @@ location /out/data.foli.fi/ {
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
}

#park api https://parking.fintraffic.fi/api/v1/facilities.json?limit=-1
location /out/parking.fintraffic.fi/ {
proxy_pass https://parking.fintraffic.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;
}

#test park api https://parking-test.fintraffic.fi/api/v1/facilities.json?limit=-1
location /out/parking-test.fintraffic.fi/ {
proxy_pass https://parking-test.fintraffic.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;
}

#hsl park api https://p.hsl.fi/api/v1/facilities.json?limit=-1
location /out/p.hsl.fi/ {
proxy_pass https://p.hsl.fi/;
Expand Down

0 comments on commit 1085461

Please sign in to comment.