uwsgi.ini 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [uwsgi]
  2. # Who will run the code
  3. uid = searxng
  4. gid = searxng
  5. # Number of workers (usually CPU count)
  6. # default value: %k (= number of CPU core, see Dockerfile)
  7. workers = $(UWSGI_WORKERS)
  8. # Number of threads per worker
  9. # default value: 4 (see Dockerfile)
  10. threads = $(UWSGI_THREADS)
  11. # The right granted on the created socket
  12. chmod-socket = 666
  13. # Plugin to use and interpreter config
  14. single-interpreter = true
  15. master = true
  16. plugin = python3
  17. lazy-apps = true
  18. enable-threads = true
  19. # Module to import
  20. module = searx.webapp
  21. # Virtualenv and python path
  22. pythonpath = /usr/local/searxng/
  23. chdir = /usr/local/searxng/searx/
  24. # automatically set processes name to something meaningful
  25. auto-procname = true
  26. # Disable request logging for privacy
  27. disable-logging = true
  28. log-5xx = true
  29. # Set the max size of a request (request-body excluded)
  30. buffer-size = 8192
  31. # No keep alive
  32. # See https://github.com/searx/searx-docker/issues/24
  33. add-header = Connection: close
  34. # Follow SIGTERM convention
  35. # See https://github.com/searxng/searxng/issues/3427
  36. die-on-term
  37. # uwsgi serves the static files
  38. static-map = /static=/usr/local/searxng/searx/static
  39. # expires set to one day
  40. static-expires = /* 86400
  41. static-gzip-all = True
  42. offload-threads = %k