searx.ini 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. # searx configuration (settings.yml)
  12. env = SEARX_SETTINGS_PATH=${SEARX_SETTINGS_PATH}
  13. # disable logging for privacy
  14. disable-logging = true
  15. # The right granted on the created socket
  16. chmod-socket = 666
  17. # Plugin to use and interpretor config
  18. single-interpreter = true
  19. # enable master process
  20. master = true
  21. # load apps in each worker instead of the master
  22. lazy-apps = true
  23. # load uWSGI plugins
  24. plugin = python3,http
  25. # By default the Python plugin does not initialize the GIL. This means your
  26. # app-generated threads will not run. If you need threads, remember to enable
  27. # them with enable-threads. Running uWSGI in multithreading mode (with the
  28. # threads options) will automatically enable threading support. This *strange*
  29. # default behaviour is for performance reasons.
  30. enable-threads = true
  31. # plugin: python
  32. # --------------
  33. #
  34. # https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-python
  35. # load a WSGI module
  36. module = searx.webapp
  37. # set PYTHONHOME/virtualenv
  38. virtualenv = ${SEARX_PYENV}
  39. # add directory (or glob) to pythonpath
  40. pythonpath = ${SEARX_SRC}
  41. # plugin http
  42. # -----------
  43. #
  44. # https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-http
  45. # Native HTTP support: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html
  46. http = ${SEARX_INTERNAL_URL}