summaryrefslogtreecommitdiff
path: root/dockerfiles/uwsgi.ini
diff options
context:
space:
mode:
authorDalf <alex@al-f.net>2020-02-25 17:25:11 +0100
committerDalf <alex@al-f.net>2020-02-25 17:25:11 +0100
commit678d41d75bcdf14b17fa13f69aa323a9f8716faa (patch)
treed07dfb824dff02fa7b519dd90526a1528f6c3142 /dockerfiles/uwsgi.ini
parent6a3ef5561ba48e287f0b9c03a0b6d2f13b703077 (diff)
downloadsearxng-678d41d75bcdf14b17fa13f69aa323a9f8716faa.tar.gz
searxng-678d41d75bcdf14b17fa13f69aa323a9f8716faa.zip
[enh] Docker image: uwsgi serves the static files directly.
When the image is built, the static files are compressed with gzip and brotli. The expires header is set to one day (same as Flask) There is not etag header (Flask does add an etag header)
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