Skip to content

Commit e2fbea1

Browse files
author
MohammadHosein Bahmani
committed
Add PROXY_CACHE_USE_STALE environment variable
default value for this variable is 'error timeout http_500 http_502 http_503 http_504'.
1 parent 01eed95 commit e2fbea1

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Dockerfile.buildkit.plus

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ENV PROXY_CACHE_SLICE_SIZE=1m
1616
ENV PROXY_CACHE_VALID_OK=1h
1717
ENV PROXY_CACHE_VALID_NOTFOUND=1m
1818
ENV PROXY_CACHE_VALID_FORBIDDEN=30s
19+
ENV PROXY_CACHE_USE_STALE='error timeout http_500 http_502 http_503 http_504'
1920

2021
# CORS env vars
2122
ENV CORS_ENABLED=0

Dockerfile.oss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ENV PROXY_CACHE_SLICE_SIZE=1m
1111
ENV PROXY_CACHE_VALID_OK=1h
1212
ENV PROXY_CACHE_VALID_NOTFOUND=1m
1313
ENV PROXY_CACHE_VALID_FORBIDDEN=30s
14+
ENV PROXY_CACHE_USE_STALE='error timeout http_500 http_502 http_503 http_504'
1415

1516
# CORS env vars
1617
ENV CORS_ENABLED=0

Dockerfile.plus

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ENV PROXY_CACHE_SLICE_SIZE=1m
1616
ENV PROXY_CACHE_VALID_OK=1h
1717
ENV PROXY_CACHE_VALID_NOTFOUND=1m
1818
ENV PROXY_CACHE_VALID_FORBIDDEN=30s
19+
ENV PROXY_CACHE_USE_STALE='error timeout http_500 http_502 http_503 http_504'
1920

2021
# CORS env vars
2122
ENV CORS_ENABLED=0

0 commit comments

Comments
 (0)