diff options
author | Alexandre Flament <alex@al-f.net> | 2023-01-14 16:36:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 16:36:57 +0100 |
commit | 18d895ffede444c5562b02a3d229952ee4f129ca (patch) | |
tree | 8fb060e9f24635cfcfbecf2fd0d6e31e78d9aebc | |
parent | afd71a6c0fb2dad424ec184517e0425e457b85cf (diff) | |
parent | caf47856638303ae62911aa897f3c760ec2bc768 (diff) | |
download | searxng-18d895ffede444c5562b02a3d229952ee4f129ca.tar.gz searxng-18d895ffede444c5562b02a3d229952ee4f129ca.zip |
Merge pull request #2097 from immanuelfodor/patch-1
Adjust uWSGI workers and threads from env
-rwxr-xr-x | dockerfiles/docker-entrypoint.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dockerfiles/docker-entrypoint.sh b/dockerfiles/docker-entrypoint.sh index efd54016e..332d5c2bb 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() { |