Skip to content

Commit

Permalink
Tested another version of the proxy_cache syntax
Browse files Browse the repository at this point in the history
okay fucker listen here, you will work now! I command you.
  • Loading branch information
CommanderStorm committed Apr 29, 2024
1 parent 27c154e commit b0a2d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ http {
'rqt[s]=$request_time rqs[bytes]=$body_bytes_sent '
'"$request" ref="$http_referer" "$http_user_agent"';
access_log /dev/stdout main;
proxy_cache_path /tmp/nginx levels=1:2 keys_zone=STATIC:1d inactive=10d max_size=1g;
proxy_cache_path /tmp/nginx levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=1g;

sendfile on;
keepalive_timeout 65;
Expand Down Expand Up @@ -53,7 +53,7 @@ http {
proxy_set_header Host $proxy_host;
proxy_buffering on;
proxy_cache STATIC;
proxy_cache_valid 200 10d;
proxy_cache_valid 200 1d;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
expires 7d;
add_header Cache-Control "public";
Expand Down

0 comments on commit b0a2d36

Please sign in to comment.