diff options
Diffstat (limited to 'utils/templates/etc/uwsgi/apps-archlinux/searxng.ini:socket')
| -rw-r--r-- | utils/templates/etc/uwsgi/apps-archlinux/searxng.ini:socket | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/utils/templates/etc/uwsgi/apps-archlinux/searxng.ini:socket b/utils/templates/etc/uwsgi/apps-archlinux/searxng.ini:socket index fec553165..e8facda86 100644 --- a/utils/templates/etc/uwsgi/apps-archlinux/searxng.ini:socket +++ b/utils/templates/etc/uwsgi/apps-archlinux/searxng.ini:socket @@ -1,3 +1,4 @@ +# -*- mode: conf; coding: utf-8 -*- [uwsgi] # uWSGI core @@ -79,7 +80,17 @@ pythonpath = ${SEARX_SRC} # # On some distributions you need to create the app folder for the sockets:: # -# mkdir -p /run/uwsgi/app/searx -# chown -R ${SERVICE_USER}:${SERVICE_GROUP} /run/uwsgi/app/searx +# mkdir -p ${SEARX_UWSGI_SOCKET} +# chown -R ${SERVICE_USER}:${SERVICE_GROUP} ${SEARX_UWSGI_SOCKET} # -socket = /run/uwsgi/app/searx/socket
\ No newline at end of file +socket = ${SEARX_UWSGI_SOCKET} + +# uwsgi serves the static files +# expires set to one year since there are hashes +static-map = /static=${SEARX_SRC}/searx/static +static-expires = /* 31557600 +static-gzip-all = True +offload-threads = %k + +# Cache +cache2 = name=searxngcache,items=2000,blocks=2000,blocksize=4096,bitmap=1 |