searx.ini:socket 1.9 KB

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