Skip to content

Commit 02f7f7b

Browse files
author
MohammadHosein Bahmani
committed
Add PROXY_CACHE_USE_STALE
1 parent 46dba19 commit 02f7f7b

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

deployments/s3_express/settings.s3express.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ PROXY_CACHE_INACTIVE=60m
2020
PROXY_CACHE_VALID_OK=1h
2121
PROXY_CACHE_VALID_NOTFOUND=1m
2222
PROXY_CACHE_VALID_FORBIDDEN=30s
23+
PROXY_CACHE_USE_STALE='error timeout http_500 http_502 http_503 http_504'

settings.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ PROXY_CACHE_INACTIVE=60m
2020
PROXY_CACHE_VALID_OK=1h
2121
PROXY_CACHE_VALID_NOTFOUND=1m
2222
PROXY_CACHE_VALID_FORBIDDEN=30s
23+
PROXY_CACHE_USE_STALE='error timeout http_500 http_502 http_503 http_504'
2324
STRIP_LEADING_DIRECTORY_PATH=/somepath

standalone_ubuntu_oss_install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ echo "Slice of slice for byte range requests: ${PROXY_CACHE_SLICE_SIZE}"
9696
echo "Proxy Caching Time for Valid Response: ${PROXY_CACHE_VALID_OK}"
9797
echo "Proxy Caching Time for Not Found Response: ${PROXY_CACHE_VALID_NOTFOUND}"
9898
echo "Proxy Caching Time for Forbidden Response: ${PROXY_CACHE_VALID_FORBIDDEN}"
99+
echo "Proxy Cache Using Stale: ${PROXY_CACHE_USE_STALE:-'error timeout http_500 http_502 http_503 http_504'}"
99100
echo "CORS Enabled: ${CORS_ENABLED}"
100101
echo "CORS Allow Private Network Access: ${CORS_ALLOW_PRIVATE_NETWORK_ACCESS}"
101102

test/docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ services:
3737
PROXY_CACHE_VALID_OK: "1h"
3838
PROXY_CACHE_VALID_NOTFOUND: "1m"
3939
PROXY_CACHE_VALID_FORBIDDEN: "30s"
40+
PROXY_CACHE_USE_STALE: "error timeout http_500 http_502 http_503 http_504"
4041

4142
minio:
4243
image: quay.io/minio/minio:RELEASE.2023-06-09T07-32-12Z

0 commit comments

Comments
 (0)