diff options
Diffstat (limited to 'dockerfiles/uwsgi.ini')
-rw-r--r-- | dockerfiles/uwsgi.ini | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dockerfiles/uwsgi.ini b/dockerfiles/uwsgi.ini index fa2fd63..818a99c 100644 --- a/dockerfiles/uwsgi.ini +++ b/dockerfiles/uwsgi.ini @@ -31,3 +31,17 @@ touch-logrotate = /run/uwsgi-logrotate unique-cron = 15 0 -1 -1 -1 { touch /run/uwsgi-logrotate } log-backupname = /var/log/uwsgi/uwsgi.log.1 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 + +# Cache +cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1 |