searx.ini 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [uwsgi]
  2. # uWSGI core
  3. # ----------
  4. #
  5. # https://uwsgi-docs.readthedocs.io/en/latest/Options.html#uwsgi-core
  6. # Who will run the code
  7. uid = ${SERVICE_USER}
  8. gid = ${SERVICE_GROUP}
  9. # chdir to specified directory before apps loading
  10. chdir = ${SEARX_SRC}/searx
  11. # disable logging for privacy
  12. disable-logging = true
  13. # The right granted on the created socket
  14. chmod-socket = 666
  15. # Plugin to use and interpretor config
  16. single-interpreter = true
  17. # enable master process
  18. master = true
  19. # load apps in each worker instead of the master
  20. lazy-apps = true
  21. # load uWSGI plugins
  22. plugin = python3,http
  23. # By default the Python plugin does not initialize the GIL. This means your
  24. # app-generated threads will not run. If you need threads, remember to enable
  25. # them with enable-threads. Running uWSGI in multithreading mode (with the
  26. # threads options) will automatically enable threading support. This *strange*
  27. # default behaviour is for performance reasons.
  28. enable-threads = true
  29. # plugin: python
  30. # --------------
  31. #
  32. # https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-python
  33. # load a WSGI module
  34. module = searx.webapp
  35. # set PYTHONHOME/virtualenv
  36. virtualenv = ${SEARX_PYENV}
  37. # add directory (or glob) to pythonpath
  38. pythonpath = ${SEARX_SRC}
  39. # plugin http
  40. # -----------
  41. #
  42. # https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-http
  43. # Native HTTP support: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html
  44. http = ${SEARX_INTERNAL_URL}