feat(frappe-nginx): configurable nginx http timeout

This commit is contained in:
Revant Nandgaonkar
2021-01-04 18:30:24 +05:30
parent 0a1413e09d
commit 6204941a5d
3 changed files with 30 additions and 5 deletions

View File

@@ -31,12 +31,15 @@ if [[ -z "$SOCKETIO_PORT" ]]; then
export SOCKETIO_PORT=9000
fi
envsubst '${API_HOST}
${API_PORT}
${FRAPPE_PY}
if [[ -z "$HTTP_TIMEOUT" ]]; then
export HTTP_TIMEOUT=120
fi
envsubst '${FRAPPE_PY}
${FRAPPE_PY_PORT}
${FRAPPE_SOCKETIO}
${SOCKETIO_PORT}' \
${SOCKETIO_PORT}
${HTTP_TIMEOUT}' \
< /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf
echo "Waiting for frappe-python to be available on $FRAPPE_PY port $FRAPPE_PY_PORT"