File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 env :
2929 UPSTREAM_SERVER : owl.virtualflybrain.org:80
3030 CACHE_MAX_SIZE : 20g
31+ CACHE_STALE_TIME : 6M
3132 DNS_RESOLVER : 8.8.8.8
3233 run : |
33- envsubst '${UPSTREAM_SERVER} ${CACHE_MAX_SIZE} ${DNS_RESOLVER}' < nginx.conf.template > test-nginx.conf
34+ envsubst '${UPSTREAM_SERVER} ${CACHE_MAX_SIZE} ${CACHE_STALE_TIME} ${ DNS_RESOLVER}' < nginx.conf.template > test-nginx.conf
3435 docker run --rm -v $(pwd)/test-nginx.conf:/tmp/nginx.conf nginx:1.26-alpine nginx -t -c /tmp/nginx.conf
3536
3637 - name : Build test Docker image
@@ -40,11 +41,13 @@ jobs:
4041 env :
4142 UPSTREAM_SERVER : owl.virtualflybrain.org:80
4243 CACHE_MAX_SIZE : 20g
44+ CACHE_STALE_TIME : 6M
4345 DNS_RESOLVER : 8.8.8.8
4446 run : |
4547 docker run -d --name test-container \
4648 -e UPSTREAM_SERVER \
4749 -e CACHE_MAX_SIZE \
50+ -e CACHE_STALE_TIME \
4851 -e DNS_RESOLVER \
4952 test-image
5053 sleep 5
You can’t perform that action at this time.
0 commit comments