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 {
36
36
chunked_transfer_encoding on ;
37
37
38
38
# increases timeouts to avoid HTTP 504
39
- proxy_connect_timeout 300s ;
39
+ proxy_connect_timeout 3s ;
40
40
proxy_read_timeout 300s ;
41
41
proxy_send_timeout 300s ;
42
42
send_timeout 300s ;
43
43
44
44
# disable proxy request buffering
45
45
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;
46
52
47
53
add_header "Access-Control-Allow-Origin" "*" ;
48
54
88
94
set $saved_redirect_location '$upstream_http_location ' ;
89
95
proxy_pass $saved_redirect_location ;
90
96
proxy_cache cache;
91
- proxy_cache_key $scheme$proxy_host$ uri$request_method ;
97
+ proxy_cache_key $scheme$uri$args $request_method ;
92
98
proxy_cache_valid 200 1y;
93
99
proxy_cache_use_stale error timeout invalid_header updating
94
100
http_500 http_502 http_503 http_504;
You can’t perform that action at this time.
0 commit comments