uwsgi.ini 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 interpretor 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 logging for privacy
  24. disable-logging = true
  25. # Set the max size of a request (request-body excluded)
  26. buffer-size = 8192
  27. # But keep errors for 2 days
  28. touch-logrotate = /run/uwsgi-logrotate
  29. unique-cron = 15 0 -1 -1 -1 { touch /run/uwsgi-logrotate }
  30. log-backupname = /var/log/uwsgi/uwsgi.log.1
  31. logto = /var/log/uwsgi/uwsgi.log
  32. # No keep alive
  33. # See https://github.com/searx/searx-docker/issues/24
  34. add-header = Connection: close
  35. # uwsgi serves the static files
  36. # expires set to one day as Flask does
  37. static-map = /static=/usr/local/searxng/searx/static
  38. static-expires = /* 864000
  39. static-gzip-all = True
  40. offload-threads = %k
  41. # Cache
  42. cache2 = name=searxngcache,items=2000,blocks=2000,blocksize=4096,bitmap=1