searx.ini:socket 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. # set (python) default encoding UTF-8
  10. env = LANG=C.UTF-8
  11. env = LANGUAGE=C.UTF-8
  12. env = LC_ALL=C.UTF-8
  13. # chdir to specified directory before apps loading
  14. chdir = ${SEARX_SRC}/searx
  15. # searx configuration (settings.yml)
  16. env = SEARX_SETTINGS_PATH=${SEARX_SETTINGS_PATH}
  17. # disable logging for privacy
  18. disable-logging = true
  19. # The right granted on the created socket
  20. chmod-socket = 666
  21. # Plugin to use and interpreter config
  22. single-interpreter = true
  23. # enable master process
  24. master = true
  25. # load apps in each worker instead of the master
  26. lazy-apps = true
  27. # load uWSGI plugins
  28. plugin = python3,http
  29. # By default the Python plugin does not initialize the GIL. This means your
  30. # app-generated threads will not run. If you need threads, remember to enable
  31. # them with enable-threads. Running uWSGI in multithreading mode (with the
  32. # threads options) will automatically enable threading support. This *strange*
  33. # default behaviour is for performance reasons.
  34. enable-threads = true
  35. # plugin: python
  36. # --------------
  37. #
  38. # https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-python
  39. # load a WSGI module
  40. module = searx.webapp
  41. # set PYTHONHOME/virtualenv
  42. virtualenv = ${SEARX_PYENV}
  43. # add directory (or glob) to pythonpath
  44. pythonpath = ${SEARX_SRC}
  45. # speak to upstream
  46. # -----------------
  47. #
  48. # Activate the 'http' configuration for filtron or activate the 'socket'
  49. # configuration if you setup your HTTP server to use uWSGI protocol via sockets.
  50. # using IP:
  51. #
  52. # https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-http
  53. # Native HTTP support: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html
  54. # http = ${SEARX_INTERNAL_HTTP}
  55. # using unix-sockets:
  56. #
  57. # On some distributions you need to create the app folder for the sockets::
  58. #
  59. # mkdir -p /run/uwsgi/app/searx
  60. # chown -R ${SERVICE_USER}:${SERVICE_GROUP} /run/uwsgi/app/searx
  61. #
  62. socket = /run/uwsgi/app/searx/socket