uwsgi.ini 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [uwsgi]
  2. # Who will run the code
  3. uid = searxng
  4. gid = searxng
  5. # Number of workers (usually CPU count)
  6. workers = %k
  7. threads = 4
  8. # The right granted on the created socket
  9. chmod-socket = 666
  10. # Plugin to use and interpreter config
  11. single-interpreter = true
  12. master = true
  13. plugin = python3
  14. lazy-apps = true
  15. enable-threads = true
  16. # Module to import
  17. module = searx.webapp
  18. # Virtualenv and python path
  19. pythonpath = /usr/local/searxng/
  20. chdir = /usr/local/searxng/searx/
  21. # automatically set processes name to something meaningful
  22. auto-procname = true
  23. # Disable request logging for privacy
  24. disable-logging = true
  25. log-5xx = true
  26. # Set the max size of a request (request-body excluded)
  27. buffer-size = 8192
  28. # No keep alive
  29. # See https://github.com/searx/searx-docker/issues/24
  30. add-header = Connection: close
  31. # uwsgi serves the static files
  32. # expires set to one year since there are hashes
  33. static-map = /static=/usr/local/searxng/searx/static
  34. static-expires = /* 31557600
  35. static-gzip-all = True
  36. offload-threads = %k
  37. # Cache
  38. cache2 = name=searxngcache,items=2000,blocks=2000,blocksize=4096,bitmap=1