update
This commit is contained in:
@@ -62,6 +62,26 @@ grep -F -- './config/letsencrypt/archive:/etc/archive:ro' \
|
||||
printf 'FAIL: TLS compose does not expose Certbot archive symlink targets\n' >&2
|
||||
exit 1
|
||||
}
|
||||
grep -F -- '/var/cache/nginx:size=256m,mode=0755' \
|
||||
"${TEST_ROOT}/compose.yaml" >/dev/null || {
|
||||
printf 'FAIL: Nginx cache tmpfs is too small for Git pack streaming\n' >&2
|
||||
exit 1
|
||||
}
|
||||
for template in \
|
||||
"${TEST_ROOT}/deploy/nginx/templates/http.conf.template" \
|
||||
"${TEST_ROOT}/deploy/nginx/templates/tls.conf.template"; do
|
||||
for directive in \
|
||||
'proxy_send_timeout 30m;' \
|
||||
'proxy_read_timeout 30m;' \
|
||||
'proxy_request_buffering off;' \
|
||||
'proxy_buffering off;'; do
|
||||
[[ "$(grep -Fc -- "$directive" "$template")" == 2 ]] || {
|
||||
printf 'FAIL: both proxied services need %s in %s\n' \
|
||||
"$directive" "$template" >&2
|
||||
exit 1
|
||||
}
|
||||
done
|
||||
done
|
||||
|
||||
printf '%s\n' \
|
||||
'broker.test' \
|
||||
|
||||
Reference in New Issue
Block a user