settings_plugins.rst 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. .. _settings plugins:
  2. ============
  3. ``plugins:``
  4. ============
  5. .. attention::
  6. The ``enabled_plugins:`` section in SearXNG's settings no longer exists.
  7. There is no longer a distinction between built-in and external plugin, all
  8. plugins are registered via the settings in the ``plugins:`` section.
  9. .. sidebar:: Further reading ..
  10. - :ref:`plugins admin`
  11. - :ref:`dev plugin`
  12. In SearXNG, plugins can be registered in the :py:obj:`PluginStore
  13. <searx.plugins.PluginStorage>` via a fully qualified class name.
  14. A configuration (:py:obj:`PluginCfg <searx.plugins.PluginCfg>`) can be
  15. transferred to the plugin, e.g. to activate it by default / *opt-in* or
  16. *opt-out* from user's point of view.
  17. Please note that some plugins, such as the :ref:`hostnames plugin` plugin,
  18. require further configuration before they can be made available for selection.
  19. By default the :ref:`settings built in plugins` are loaded. To change the list
  20. of plugins to be loaded, the value for ``plugins:`` in
  21. ``/etc/searxng/settings.yml`` must be overwritten.
  22. Following is an example that uses :ref:`settings use_default_settings` and only
  23. two plugins are registered: the calculator can be activated by the user and the
  24. unit converter is active by default.
  25. .. code:: yaml
  26. use_default_settings: true
  27. plugins:
  28. searx.plugins.calculator.SXNGPlugin:
  29. active: false
  30. searx.plugins.unit_converter.SXNGPlugin:
  31. active: true
  32. To prevent any plugins from loading, the following setting can be used:
  33. .. code:: yaml
  34. use_default_settings: true
  35. plugins: {}
  36. .. _settings built in plugins:
  37. built-in plugins
  38. ================
  39. The built-in plugins are all located in the namespace `searx.plugins`.
  40. .. code:: yaml
  41. plugins:
  42. searx.plugins.calculator.SXNGPlugin:
  43. active: true
  44. searx.plugins.hash_plugin.SXNGPlugin:
  45. active: true
  46. searx.plugins.self_info.SXNGPlugin:
  47. active: true
  48. searx.plugins.tracker_url_remover.SXNGPlugin:
  49. active: true
  50. searx.plugins.unit_converter.SXNGPlugin:
  51. active: true
  52. searx.plugins.ahmia_filter.SXNGPlugin:
  53. active: true
  54. searx.plugins.hostnames.SXNGPlugin:
  55. active: true
  56. searx.plugins.oa_doi_rewrite.SXNGPlugin:
  57. active: false
  58. searx.plugins.tor_check.SXNGPlugin:
  59. active: false
  60. .. _settings external_plugins:
  61. external plugins
  62. ================
  63. .. _Only show green hosted results:
  64. https://github.com/return42/tgwf-searx-plugins/
  65. SearXNG supports *external plugins* / there is no need to install one, SearXNG
  66. runs out of the box.
  67. - `Only show green hosted results`_
  68. - ..