Skip to content

Commit

Permalink
production cache
Browse files Browse the repository at this point in the history
  • Loading branch information
krokicki committed Aug 2, 2024
1 parent 6b81da9 commit d2e622a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ events {
}

http {
proxy_cache_path /var/cache/nginx keys_zone=mycache:1000m max_size=1000g levels=1:2 inactive=6h;
proxy_cache_key "$scheme$request_method$host$request_uri";
proxy_cache_path /var/cache/nginx keys_zone=mycache:10m max_size=50g levels=1:2 inactive=1h;
proxy_cache_valid 200 302 15m;
proxy_cache_valid 404 1m;

Expand Down

0 comments on commit d2e622a

Please sign in to comment.