diff options
author | Alexandre Flament <alex@al-f.net> | 2020-09-19 16:04:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-19 16:04:07 +0200 |
commit | 4cc8644ec918461371f61007bc0e50e44620fc69 (patch) | |
tree | d4b7a71519e56746cce4cb7248501785049e93d8 /dockerfiles | |
parent | 375cbd12b34ac08ae350c9d48881d29cb643e734 (diff) | |
parent | dc8d9750515054885da354a82f1a0e4ab9572bab (diff) | |
download | searxng-4cc8644ec918461371f61007bc0e50e44620fc69.tar.gz searxng-4cc8644ec918461371f61007bc0e50e44620fc69.zip |
Merge pull request #1865 from dalf/uwsgi_static
[enh] Docker image: uwsgi serves the static files directly.
Diffstat (limited to 'dockerfiles')
-rw-r--r-- | dockerfiles/uwsgi.ini | 7 |
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 |