mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 10:32:21 +02:00
[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)
This commit is contained in:
parent
6a3ef5561b
commit
678d41d75b
2 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue