settings_general.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. .. _settings general:
  2. ============
  3. ``general:``
  4. ============
  5. .. code:: yaml
  6. general:
  7. debug: false
  8. instance_name: "SearXNG"
  9. privacypolicy_url: false
  10. donation_url: false
  11. contact_url: false
  12. enable_metrics: true
  13. open_metrics: ''
  14. ``debug`` : ``$SEARXNG_DEBUG``
  15. Allow a more detailed log if you run SearXNG directly. Display *detailed* error
  16. messages in the browser too, so this must be deactivated in production.
  17. ``donation_url`` :
  18. Set value to ``true`` to use your own donation page written in the
  19. :ref:`searx/info/en/donate.md <searx.infopage>` and use ``false`` to disable
  20. the donation link altogether.
  21. ``privacypolicy_url``:
  22. Link to privacy policy.
  23. ``contact_url``:
  24. Contact ``mailto:`` address or WEB form.
  25. ``enable_metrics``:
  26. Enabled by default. Record various anonymous metrics available at ``/stats``,
  27. ``/stats/errors`` and ``/preferences``.
  28. ``open_metrics``:
  29. Disabled by default. Set to a secret password to expose an
  30. `OpenMetrics API <https://github.com/prometheus/OpenMetrics>`_ at ``/metrics``,
  31. e.g. for usage with Prometheus. The ``/metrics`` endpoint is using HTTP Basic Auth,
  32. where the password is the value of ``open_metrics`` set above. The username used for
  33. Basic Auth can be randomly chosen as only the password is being validated.