summaryrefslogtreecommitdiff
path: root/dockerfiles/uwsgi.ini
diff options
context:
space:
mode:
Diffstat (limited to 'dockerfiles/uwsgi.ini')
-rw-r--r--dockerfiles/uwsgi.ini7
1 files changed, 7 insertions, 0 deletions
diff --git a/dockerfiles/uwsgi.ini b/dockerfiles/uwsgi.ini
index ecc4b394e..398a440d9 100644
--- a/dockerfiles/uwsgi.ini
+++ b/dockerfiles/uwsgi.ini
@@ -35,3 +35,10 @@ logto = /var/log/uwsgi/uwsgi.log
# No keep alive
# See https://github.com/searx/searx-docker/issues/24
add-header = Connection: close
+
+# uwsgi serves the static files
+# expires set to one day as Flask does
+static-map = /static=/usr/local/searx/searx/static
+static-expires = /* 864000
+static-gzip-all = True
+offload-threads = %k