uwsgi.ini 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. plugin = python3
  20. lazy-apps = true
  21. enable-threads = true
  22. # Module to import
  23. module = searx.webapp
  24. # Virtualenv and python path
  25. pythonpath = /usr/local/searxng/
  26. chdir = /usr/local/searxng/searx/
  27. # automatically set processes name to something meaningful
  28. auto-procname = true
  29. # Disable request logging for privacy
  30. disable-logging = true
  31. log-5xx = true
  32. # Set the max size of a request (request-body excluded)
  33. buffer-size = 8192
  34. # No keep alive
  35. # See https://github.com/searx/searx-docker/issues/24
  36. add-header = Connection: close
  37. # Follow SIGTERM convention
  38. # See https://github.com/searxng/searxng/issues/3427
  39. die-on-term
  40. # uwsgi serves the static files
  41. static-map = /static=/usr/local/searxng/searx/static
  42. static-gzip-all = True
  43. offload-threads = %k