|
@@ -83,4 +83,14 @@ pythonpath = ${SEARX_SRC}
|
|
|
# mkdir -p ${SEARX_UWSGI_SOCKET}
|
|
|
# chown -R ${SERVICE_USER}:${SERVICE_GROUP} ${SEARX_UWSGI_SOCKET}
|
|
|
#
|
|
|
-socket = ${SEARX_UWSGI_SOCKET}
|
|
|
+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
|