summaryrefslogtreecommitdiff
path: root/dockerfiles
diff options
context:
space:
mode:
authorImmánuel! <21174107+immanuelfodor@users.noreply.github.com>2023-01-11 14:53:36 +0100
committerGitHub <noreply@github.com>2023-01-11 14:53:36 +0100
commitcaf47856638303ae62911aa897f3c760ec2bc768 (patch)
tree8fb060e9f24635cfcfbecf2fd0d6e31e78d9aebc /dockerfiles
parentafd71a6c0fb2dad424ec184517e0425e457b85cf (diff)
Let uWSGI workers and threads be adjustable from env
Diffstat (limited to 'dockerfiles')
-rwxr-xr-xdockerfiles/docker-entrypoint.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/dockerfiles/docker-entrypoint.sh b/dockerfiles/docker-entrypoint.sh
index efd54016..332d5c2b 100755
--- a/dockerfiles/docker-entrypoint.sh
+++ b/dockerfiles/docker-entrypoint.sh
@@ -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() {