Skip to content

Commit a7dd404

Browse files
mhbahmanidekobon
authored andcommitted
Set default value for PROXY_CACHE_USE_STALE in nginx environment
1 parent 8aaef08 commit a7dd404

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

standalone_ubuntu_oss_install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ PROXY_CACHE_VALID_OK=${PROXY_CACHE_VALID_OK:-'1h'}
180180
PROXY_CACHE_VALID_NOTFOUND=${PROXY_CACHE_VALID_NOTFOUND:-'1m'}
181181
# Proxy caching time for response code 403
182182
PROXY_CACHE_VALID_FORBIDDEN=${PROXY_CACHE_VALID_FORBIDDEN:-'30s'}
183+
# Proxy cache using stale data when error occurs
184+
PROXY_CACHE_USE_STALE=${PROXY_CACHE_USE_STALE:-'error timeout http_500 http_502 http_503 http_504'}
183185
# Enables or disables CORS for the S3 Gateway (true=enabled, false=disabled)
184186
CORS_ENABLED=${CORS_ENABLED:-'false'}
185187
# Configure portion of URL to be removed (optional)

0 commit comments

Comments
 (0)