summaryrefslogtreecommitdiff
path: root/utils/templates/etc/uwsgi/apps-available/searxng.ini:socket
diff options
context:
space:
mode:
Diffstat (limited to 'utils/templates/etc/uwsgi/apps-available/searxng.ini:socket')
-rw-r--r--utils/templates/etc/uwsgi/apps-available/searxng.ini:socket12
1 files changed, 11 insertions, 1 deletions
diff --git a/utils/templates/etc/uwsgi/apps-available/searxng.ini:socket b/utils/templates/etc/uwsgi/apps-available/searxng.ini:socket
index d247ec5af..c76d084e1 100644
--- a/utils/templates/etc/uwsgi/apps-available/searxng.ini:socket
+++ b/utils/templates/etc/uwsgi/apps-available/searxng.ini:socket
@@ -82,4 +82,14 @@ pythonpath = ${SEARX_SRC}
# mkdir -p ${SEARX_UWSGI_SOCKET}
# chown -R ${SERVICE_USER}:${SERVICE_GROUP} ${SEARX_UWSGI_SOCKET}
#
-socket = ${SEARX_UWSGI_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