Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try caching any to fix issues with 404 being returned indefinetly #245

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions external.conf
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ location = /out/tampere-api.giravolta.io/api-opendata/gbfs/2_3/gbfs {
proxy_pass https://api.giravolta.io/api-opendata/gbfs/2_3/gbfs;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 302 30s;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
Expand All @@ -394,7 +394,7 @@ location /out/tampere-api.giravolta.io/ {
proxy_pass https://api.giravolta.io/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 302 30s;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
Expand All @@ -413,7 +413,7 @@ location = /out/vantaa-api.giravolta.io/api-opendata/gbfs/2_3/gbfs {
proxy_pass https://api.giravolta.io/api-opendata/gbfs/2_3/gbfs;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 302 30s;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
Expand All @@ -431,7 +431,7 @@ location /out/vantaa-api.giravolta.io/ {
proxy_pass https://api.giravolta.io/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 302 30s;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
Expand All @@ -446,7 +446,7 @@ location /out/rata.digitraffic.fi/ {
proxy_pass https://rata.digitraffic.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
Expand Down