uwsgi.ini 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [uwsgi]
  2. # Who will run the code
  3. uid = searx
  4. gid = searx
  5. # Number of workers (usually CPU count)
  6. workers = 4
  7. # The right granted on the created socket
  8. chmod-socket = 666
  9. # Plugin to use and interpreter config
  10. single-interpreter = true
  11. master = true
  12. plugin = python3
  13. lazy-apps = true
  14. enable-threads = true
  15. # Module to import
  16. module = searx.webapp
  17. # Virtualenv and python path
  18. pythonpath = /usr/local/searx/
  19. chdir = /usr/local/searx/searx/
  20. # Disable logging for privacy
  21. disable-logging=True
  22. # But keep errors for 2 days
  23. touch-logrotate = /run/uwsgi-logrotate
  24. unique-cron = 15 0 -1 -1 -1 { touch /run/uwsgi-logrotate }
  25. log-backupname = /var/log/uwsgi/uwsgi.log.1
  26. logto = /var/log/uwsgi/uwsgi.log
  27. # No keep alive
  28. # See https://github.com/searx/searx-docker/issues/24
  29. add-header = Connection: close
  30. # uwsgi serves the static files
  31. # expires set to one day as Flask does
  32. static-map = /static=/usr/local/searx/searx/static
  33. static-expires = /* 864000
  34. static-gzip-all = True
  35. offload-threads = %k
  36. # Cache
  37. cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1