searx.ini:socket 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. # speak to upstream
  42. # -----------------
  43. #
  44. # Activate the 'http' configuration for filtron or activate the 'socket'
  45. # configuration if you setup your HTTP server to use uWSGI protocol via sockets.
  46. # using IP:
  47. #
  48. # https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-http
  49. # Native HTTP support: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html
  50. # http = ${SEARX_INTERNAL_HTTP}
  51. # using unix-sockets:
  52. #
  53. # On some distributions you need to create the app folder for the sockets::
  54. #
  55. # mkdir -p /run/uwsgi/app/searx
  56. # chown -R ${SERVICE_USER}:${SERVICE_GROUP} /run/uwsgi/app/searx
  57. #
  58. socket = /run/uwsgi/app/searx/socket