uwsgi.ini 802 B

12345678910111213141516171819202122232425262728293031323334353637
  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 interpretor 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