searx.ini 1.5 KB

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