Let uWSGI workers and threads be adjustable from env

dependabot/pip/master/flask-babel-3.0.0
Immánuel! 1 year ago committed by GitHub
parent afd71a6c0f
commit caf4785663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -61,6 +61,12 @@ echo "SearXNG version ${SEARXNG_VERSION}"
# helpers to update the configuration files
patch_uwsgi_settings() {
CONF="$1"
# update uwsg.ini
sed -i \
-e "s|workers = .*|workers = ${UWSGI_WORKERS:-%k}|g" \
-e "s|threads = .*|threads = ${UWSGI_THREADS:-4}|g" \
"${CONF}"
}
patch_searxng_settings() {

Loading…
Cancel
Save