File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,19 @@ http {
3636 chunked_transfer_encoding on;
3737
3838 # increases timeouts to avoid HTTP 504
39- proxy_connect_timeout 300s ;
39+ proxy_connect_timeout 3s ;
4040 proxy_read_timeout 300s ;
4141 proxy_send_timeout 300s ;
4242 send_timeout 300s ;
4343
4444 # disable proxy request buffering
4545 proxy_request_buffering off;
46+ proxy_cache cache;
47+ proxy_cache_key $scheme$uri$args$request_method ;
48+ proxy_cache_valid 200 1s ;
49+ proxy_cache_use_stale error timeout invalid_header updating
50+ http_500 http_502 http_503 http_504;
51+ proxy_cache_lock on;
4652
4753 add_header "Access-Control-Allow-Origin" "*" ;
4854
8894 set $saved_redirect_location '$upstream_http_location' ;
8995 proxy_pass $saved_redirect_location ;
9096 proxy_cache cache;
91- proxy_cache_key $scheme$proxy_host$ uri$request_method ;
97+ proxy_cache_key $scheme$uri$args $request_method ;
9298 proxy_cache_valid 200 1y ;
9399 proxy_cache_use_stale error timeout invalid_header updating
94100 http_500 http_502 http_503 http_504;
You can’t perform that action at this time.
0 commit comments