settings_general.rst 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. In debug mode, the server provides an interactive debugger, will reload when
  16. code is changed and activates a verbose logging.
  17. .. attention::
  18. The debug setting is intended for local development server. Don't
  19. activate debug (don't use a development server) when deploying to
  20. production.
  21. ``donation_url`` :
  22. Set value to ``true`` to use your own donation page written in the
  23. :ref:`searx/info/en/donate.md <searx.infopage>` and use ``false`` to disable
  24. the donation link altogether.
  25. ``privacypolicy_url``:
  26. Link to privacy policy.
  27. ``contact_url``:
  28. Contact ``mailto:`` address or WEB form.
  29. ``enable_metrics``:
  30. Enabled by default. Record various anonymous metrics available at ``/stats``,
  31. ``/stats/errors`` and ``/preferences``.
  32. ``open_metrics``:
  33. Disabled by default. Set to a secret password to expose an
  34. `OpenMetrics API <https://github.com/prometheus/OpenMetrics>`_ at ``/metrics``,
  35. e.g. for usage with Prometheus. The ``/metrics`` endpoint is using HTTP Basic Auth,
  36. where the password is the value of ``open_metrics`` set above. The username used for
  37. Basic Auth can be randomly chosen as only the password is being validated.