fix: align api keepalive with gateway pool
This commit is contained in:
@@ -19,6 +19,11 @@ set -a
|
||||
source "$ENV_FILE"
|
||||
set +a
|
||||
|
||||
if [[ ! "${API_HTTP_KEEP_ALIVE_TIMEOUT_MS:-}" =~ ^[1-9][0-9]*$ || ! "${API_HTTP_HEADERS_TIMEOUT_MS:-}" =~ ^[1-9][0-9]*$ || "${API_HTTP_HEADERS_TIMEOUT_MS}" -le "${API_HTTP_KEEP_ALIVE_TIMEOUT_MS}" ]]; then
|
||||
echo "API_HTTP_KEEP_ALIVE_TIMEOUT_MS must be positive and API_HTTP_HEADERS_TIMEOUT_MS must be greater in $ENV_FILE." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "${API_ENABLE_SEND_WORKER:-}" != "true" ]]; then
|
||||
echo "API_ENABLE_SEND_WORKER=true is required in $ENV_FILE; refusing to deploy with SMS sending disabled." >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user