Skip to content

Commit

Permalink
BN: 5s for 404 responses, enlarge item size, default timeouts for lock
Browse files Browse the repository at this point in the history
  • Loading branch information
blind-oracle committed Feb 20, 2024
1 parent fc5408e commit 905f714
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -52,10 +52,9 @@ include "includes/request_id.conf";
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Vary Set-Cookie;
proxy_cache_path /var/cache/nginx/static levels=1:2 keys_zone=cache_static:100m max_size=4000m use_temp_path=off;
proxy_cache_lock on;
proxy_cache_lock_age 3s;
proxy_cache_lock_timeout 3s;
proxy_cache_key $scheme$host$request_uri;
proxy_cache_valid 200 301 302 404 10s;
proxy_cache_valid 200 301 302 10s;
proxy_cache_valid 404 5s;

### Rate Limiting
limit_req_status 429;
Expand Down
Expand Up @@ -61,7 +61,7 @@ function generate_config() {
cat >"${ENV_FILE}" <<EOF
NNS_URL=${NNS_URL}
CACHE_SIZE=1073741824
CACHE_ITEM_MAX_SIZE=131072
CACHE_ITEM_MAX_SIZE=10485760
CACHE_TTL=1
MAX_CONCURRENCY=${MAX_CONCURRENCY:-}
SHED_EWMA_PARAM=${SHED_EWMA_PARAM:-}
Expand Down

0 comments on commit 905f714

Please sign in to comment.