uwsgi.ini 1.2 KB

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