diff options
author | Alexandre Flament <alex@al-f.net> | 2021-01-05 11:22:48 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-01-12 11:47:17 +0100 |
commit | 6e2872f43625aba71eba019e16f7fbd74743f590 (patch) | |
tree | 858625b7b0410503c41e8ccca14b28202d13c961 /utils/templates | |
parent | 9c581466e136f7cb82d5ffe6c052fbd9e93ab39f (diff) | |
download | searxng-6e2872f43625aba71eba019e16f7fbd74743f590.tar.gz searxng-6e2872f43625aba71eba019e16f7fbd74743f590.zip |
[enh] add searx.shared
shared dictionary between the workers (UWSGI or werkzeug)
scheduler: run a task once every x seconds (UWSGI or werkzeug)
Diffstat (limited to 'utils/templates')
-rw-r--r-- | utils/templates/etc/uwsgi/apps-archlinux/searx.ini | 5 | ||||
-rw-r--r-- | utils/templates/etc/uwsgi/apps-available/searx.ini | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/utils/templates/etc/uwsgi/apps-archlinux/searx.ini b/utils/templates/etc/uwsgi/apps-archlinux/searx.ini index 9dd2e6f2f..71cece3c4 100644 --- a/utils/templates/etc/uwsgi/apps-archlinux/searx.ini +++ b/utils/templates/etc/uwsgi/apps-archlinux/searx.ini @@ -82,4 +82,7 @@ http = ${SEARX_INTERNAL_HTTP} # mkdir -p /run/uwsgi/app/searx # chown -R ${SERVICE_USER}:${SERVICE_GROUP} /run/uwsgi/app/searx # -# socket = /run/uwsgi/app/searx/socket
\ No newline at end of file +# socket = /run/uwsgi/app/searx/socket + +# Cache +cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1 diff --git a/utils/templates/etc/uwsgi/apps-available/searx.ini b/utils/templates/etc/uwsgi/apps-available/searx.ini index 4d69da0cf..45214ef13 100644 --- a/utils/templates/etc/uwsgi/apps-available/searx.ini +++ b/utils/templates/etc/uwsgi/apps-available/searx.ini @@ -82,3 +82,6 @@ http = ${SEARX_INTERNAL_HTTP} # chown -R ${SERVICE_USER}:${SERVICE_GROUP} /run/uwsgi/app/searx # # socket = /run/uwsgi/app/searx/socket + +# Cache +cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1 |